Skip to content
Discussion options

You must be logged in to vote

TL;DR you have to connect to all 3 instances directly with JMX in order to get an accurate messageCount for a queue because of distribution.

Each broker instance has its own MBean instances that only reflect the state of the broker instance that hosts them. When a JMX client query the message count of a queue it gets only the count of the messages in the queue of the broker instance to which it is connected.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jlplasce
Comment options

@brusdev
Comment options

Answer selected by jlplasce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants