ActiveMQ detailed explanation ------------ understanding and installation



Number Of Consumers This is the number of consumers on the consumer side.

Number Of Pending Messages This is the number of messages waiting to be consumed. This is the number of currently unqueued. It can be understood as the total number of receptions - the total number of dequeues.
Messages Enqueued The  total number of messages entering the queue, including those that are dequeued. This number only increases and does not
decrease. Messages Dequeued messages out of the queue can be understood as the consumption of the consumed quantity.
This should be understood in two cases.
In queues, it is equal to the total number of queues (because a message can only be successfully consumed) once), if it doesn't wait for the time being because the consumer hasn't had time to spend.
In topics it will be higher than the number of queues due to multiple consumers.
A simple understanding of the above means that
when a message enters the queue, the message waiting to be consumed is 1, and the message entering the queue is 1.
When a message is consumed, the message waiting to be consumed is 0, the message entering the queue is 1, and the message going out of the queue is 1.
When a message comes, the message waiting to be consumed is 1, and the message entering the queue is 2.


When there is no consumer Pending Messages is the same as the number of incoming queues.
When there is consumer consumption, Pedding will decrease and the out-queue will
increase to the end. The number of incoming and outgoing queues is the same.

By analogy, the messages entering the queue and the messages coming out of the queue are pools, and the messages waiting to be consumed are water flows 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326990069&siteId=291194637