Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Pending Messages and Enqueue Counter in Active MQ?

Tags:

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?

like image 839
Srinivas Avatar asked Oct 16 '11 17:10

Srinivas


People also ask

What is message enqueue in ActiveMQ?

Enqueue Count - the total number of messages sent to the queue since the last restart. Dequeue Count - the total number of messages removed from the queue (ack'd by consumer) since last restart. Inflight Count - the number of messages sent to a consumer session and have not received an ack.

What are pending messages?

A pending message is a message scheduled to go out that hasn't been sent yet.

How many messages can ActiveMQ handle?

ActiveMQ has a settings which limits number of messages that can be browsed by a client. By default, it's 400. This setting prevents QueueExplorer to read all (or top 1000, Top 10000, etc) messages from the queue.

How do I check my ActiveMQ messages?

When you have created a message in a queue, the message is displayed in the list of messages on the Queues tab. You can click a message in the list to display a detailed view of the message properties and message body contents.


2 Answers

Messages Enqueued = Number of messages sent to the queue since the server start

Messages Dequeued = Number of messages received+deleted since the server start

like image 30
SK Singh Avatar answered Sep 21 '22 18:09

SK Singh


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).

like image 184
Laures Avatar answered Sep 18 '22 18:09

Laures