Alex Rivera | Logout

Difference between Pending Messages and Enqueue Counter in Active MQ?

Asked 2011-10-16T17:41:59.300
28

In the Active MQ Admin console of what is the difference between "Number Of Pending Messages" and "Messages Enqueued"? When a Message is placed on to the queue, should both these values should match?

Edit
Report

1 Answer

58

pending messages = number of messages CURRENTLY waiting for delivery in the destination (the current size of the queue)

enqueued messages = number of messages that where enqueued in the destination since the last statistic reset. This number can only rise.

dequeued messages = messages delivered from the destination to consumers. this number can be higher that the number of enqueued messages if a message was delivered to multiple consumers (topics).

answered 2011-10-18T14:43:47.627

Your Answer