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.

Reply via email to