You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Marco Crivellaro <ma...@gmail.com> on 2013/01/07 12:29:18 UTC

little issue with ActiveMQ Consumer having prefetch set to 0 (polling)

Hi All,
I am looking into a small issue I am facing when using ActiveMQ consumer
(Camel route, standalone application) configured to poll messages (ActiveMQ
connectionstring parameter jms.prefetchPolicy.queuePrefetch=0)

current setup involves 450 consumers which are restarted by a cron (not all
at the same time).

>From time to time ActiveMQ console shows more than 450 consumers. The issue
is not shown when using prefect with a value higher than 0 so I am pretty
sure it is caused by polling.

I guess this is a side effect of the restart of one consumer with ActiveMQ
not realising the this is gone.

I've noticed a pattern when the number of consumer count is higher: Client
ID and Connection ID have a different naming (last digit is different)

typical naming for client id, connection id is:
hostname-53053-1357556761084-1:1
hostname-53053-1357556761084-0:1

when there is a higher number of consumers the client id and connection id
have 2 instead of 1 as last digit
hostname-53053-1357556761084-1:2
hostname-53053-1357556761084-0:2

when this happens only the consumer with last digit set to 2 is actively
consuming; the other consumer has only 1 Enqueue listed in the stats.


How are Client ID and Connection ID created, are they associated by Camel or
by ActiveMQ?






--
View this message in context: http://camel.465427.n5.nabble.com/little-issue-with-ActiveMQ-Consumer-having-prefetch-set-to-0-polling-tp5725050.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: little issue with ActiveMQ Consumer having prefetch set to 0 (polling)

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jan 11, 2013 at 3:27 PM, Marco Crivellaro <ma...@gmail.com> wrote:
> Any idea on how Client ID and Connection ID are created when connecting to
> ActiveMQ?
>

I assume they are created by the JMS client (eg ActiveMQ).


>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/little-issue-with-ActiveMQ-Consumer-having-prefetch-set-to-0-polling-tp5725050p5725391.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: little issue with ActiveMQ Consumer having prefetch set to 0 (polling)

Posted by Marco Crivellaro <ma...@gmail.com>.
Any idea on how Client ID and Connection ID are created when connecting to
ActiveMQ?



--
View this message in context: http://camel.465427.n5.nabble.com/little-issue-with-ActiveMQ-Consumer-having-prefetch-set-to-0-polling-tp5725050p5725391.html
Sent from the Camel - Users mailing list archive at Nabble.com.