You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "O.Yaromchik" <oy...@gmail.com> on 2009/02/09 11:25:22 UTC
ConsumerInfo shows wrong number of consumers
We have consumer on a queue in our project and spring's ScheduledTimerTask
which closes, releases reference on it, then creates and starts a new one
periodically (ones per 6 hours). When application stays idle for a long time
and consumer stays idle too, ConsumerInfo shows number of consumers > 1.
Then we put message in queue and after that number of consumers becomes 1.
Why does ConsumerInfo show wrong number of consumers? Can broker hold dead
references on consumers and destroy them only if message enters queue?
ActiveMQ 5.1.0
Windows XP
--
View this message in context: http://www.nabble.com/ConsumerInfo-shows-wrong-number-of-consumers-tp21910192p21910192.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ConsumerInfo shows wrong number of consumers
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi, there is currently a known issue that ConsumerInfo shows total number of
consumers instead of just those for the specific destination
https://issues.apache.org/activemq/browse/AMQ-2099
if you're using advisory messages, you might be hit by this bug.
Can you check what consumers JConsole shows, when this situation occurs?
Cheers
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Mon, Feb 9, 2009 at 11:25 AM, O.Yaromchik <oy...@gmail.com> wrote:
>
> We have consumer on a queue in our project and spring's ScheduledTimerTask
> which closes, releases reference on it, then creates and starts a new one
> periodically (ones per 6 hours). When application stays idle for a long
> time
> and consumer stays idle too, ConsumerInfo shows number of consumers > 1.
> Then we put message in queue and after that number of consumers becomes 1.
> Why does ConsumerInfo show wrong number of consumers? Can broker hold dead
> references on consumers and destroy them only if message enters queue?
>
> ActiveMQ 5.1.0
> Windows XP
> --
> View this message in context:
> http://www.nabble.com/ConsumerInfo-shows-wrong-number-of-consumers-tp21910192p21910192.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>