I am using ActiveMQ queue and publishing messages to a queue and consuming the published msgs. I am using spring DefaultMessageListenerContainer to consume messages from the Queue. My queue name is cases-queue. When the DefaultMessageListenerContainer is running I see in ActiveMQ Console , under Topic -- for ActiveMQ.Advisory.Consumer.Queue.cases-queue and ActiveMQ.Advisory.Connection --- the Enqueue # keeps one increasing in increments of 10.
Will ActiveMQConnectionFactory.setWatchTopicAdvisories(false) help. Sorry I am not so familiar with ActiveMQ.
I am not sure what is the ActiveMQ.Advisory.Consumer.Queue.cases-queue . Whats the enqueue #? Why does the Enqueue # keep increasing in ActiveMQ.Advisory.Consumer.Queue.cases-queue? Why does the Enqueue # keep increasing in ActiveMQ.Advisory.Connection? Can this lead to out of memory on the server?
I also noticed that for a different queue , ActiveMQ.Advisory.Consumer.Queue.data-queue , the Enqueue # does not increase . I am not sure how this queue listener/consumer is implemented though.
Please see the picture below :