Total enqueue count greater than total dequeue count
Issue
- We use durable virtual topics process messages.
- Login to hawtio and found that, even though "total message count" is 0 and "dlq" is false, "total enqueue count" is more than "total dequeue count".
Besides, we check all "dequeue count" in every virtual topics listed by hawtio, and found all value of each topic is 0. Maybe this issue is the same like this: https://issues.apache.org/jira/browse/AMQ-4965. -
But why "total dequeue count" is NOT 0? We use virtual topics only. It should be 0 or equal to "total enqueue count", can you help explain this?
- start a-mq, and login to hawtio.
- Add a queue named "test", then put messages to it by using cmd: activemq producer --user admin --password admin --brokerUrl tcp://127.0.0.1:61616
- You can find "total message count" is 1000(which is default message numbers I put before), but "total enqueue count" is 1005
- You can find where the extra 5 messages is, three system topics has been created by a-mq, and totally 5 message enqueue in these topics
- Then use CMD: activemq consumer --user admin --password admin --brokerUrl tcp://127.0.0.1:61616 to consume all messages
- 1000 messages has been consumed, but enqueue count changed to 10009, extra 4 messages enqueue
-
Question:
- Can you explain why extra 9 messages enqueued?
- If I want to know how many messages enqueued by app(EXCLUDE A-MQ MESSAGE), how can I get it?
Environment
- Red Hat JBoss A-MQ
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
