You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mserrano <ma...@attivio.com> on 2012/02/23 17:46:23 UTC

how can jmx queueSize be greater than enqueue size?

I am using 5.5.1.

I don't really understand how this can be happening.  Any advice would be
appreciated:

ConsumerCount: 1
CursorFull: false
CursorMemoryUsage: 375818264
CursorPercentUsage: 70
DequeueCount: 0
DispatchCount: 20803
EnqueueCount: 20807
ExpiredCount: 0
InFlightCount: 20803
...
QueueSize: 149517

--
View this message in context: http://activemq.2283324.n4.nabble.com/how-can-jmx-queueSize-be-greater-than-enqueue-size-tp4414406p4414406.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: how can jmx queueSize be greater than enqueue size?

Posted by Jakub Korab <ja...@gmail.com>.
Actually wrote that too soon. They have different purposes:

QueueSize contains the count of the messages in the store that have not yet
been acknowledged as consumed. This persists between broker
restarts/failovers.

EnqueueCount, DispatchCount and DequeueCount are counters that are specific
to the process. They would not be useful across processes, or even able to
be gathered, as messages are deleted/archived from the store over time.

Jakub


Jakub Korab wrote
> 
> Thats consistent with something I saw recently. The EnqueCount,
> DispatchCount numbers are reset to 0 on broker restart. The QueueSize
> takes into account persisted messages that were in the store when the
> broker started.
> 
> I have a config that I can reproduce it with - I'll log it as a bug.
> 
> Jakub
> 
> 
> mserrano wrote
>> 
>> Ok, after poking around a bit, I realized that there must be persisted
>> messages being restored from a previous execution.  Does that make sense?
>> 
> 


--
View this message in context: http://activemq.2283324.n4.nabble.com/how-can-jmx-queueSize-be-greater-than-enqueue-size-tp4414406p4416901.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: how can jmx queueSize be greater than enqueue size?

Posted by Jakub Korab <ja...@gmail.com>.
Thats consistent with something I saw recently. The EnqueCount, DispatchCount
numbers are reset to 0 on broker restart. The QueueSize takes into account
persisted messages that were in the store when the broker started.

I have a config that I can reproduce it with - I'll log it as a bug.

Jakub


mserrano wrote
> 
> Ok, after poking around a bit, I realized that there must be persisted
> messages being restored from a previous execution.  Does that make sense?
> 


--
View this message in context: http://activemq.2283324.n4.nabble.com/how-can-jmx-queueSize-be-greater-than-enqueue-size-tp4414406p4416844.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: how can jmx queueSize be greater than enqueue size?

Posted by Matt Pavlovich <ma...@gmail.com>.
Enqueued and dequeued are counters for the number of total messages that 
have traveled through the system over time.  QueueSize is the current count.

On 2/23/12 1:00 PM, mserrano wrote:
> Ok, after poking around a bit, I realized that there must be persisted
> messages being restored from a previous execution.  Does that make sense?
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/how-can-jmx-queueSize-be-greater-than-enqueue-size-tp4414406p4414654.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: how can jmx queueSize be greater than enqueue size?

Posted by mserrano <ma...@attivio.com>.
Ok, after poking around a bit, I realized that there must be persisted
messages being restored from a previous execution.  Does that make sense?

--
View this message in context: http://activemq.2283324.n4.nabble.com/how-can-jmx-queueSize-be-greater-than-enqueue-size-tp4414406p4414654.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.