incorrect DequeueCount
----------------------

                 Key: AMQ-1009
                 URL: https://issues.apache.org/activemq/browse/AMQ-1009
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 4.0.1
         Environment: linux
            Reporter: Winston Huang


i am seeing this through activemq (4.0.1) jmx:

Type = Queue
Destination = XXX
QueueSize = 2751
Name = XXX
DequeueCount = 3575
MemoryPercentageUsed = 0
ConsumerCount = 6
MemoryLimit = 9223372036854775807
EnqueueCount = 3575

and after a while, something like this:

Destination = XXX
QueueSize = 11421
Name = XXX
DequeueCount = 8046
MemoryPercentageUsed = 0
ConsumerCount = 6
MemoryLimit = 9223372036854775807
EnqueueCount = 13471

my activemq is started with a clean database and journal. how does the math add 
up among QueueSize, DequeueCount and EnqueueCount? i thought dequeuecount + 
queuesize = enqueuecount. in my case, QueueSize looks more "correct" than the 
dequeuecount is wrong because my consumers are slower than message producers. 

more info, when i shutdown my consumers, i see stats like this during one test:

Type = Queue
Destination = XXX
QueueSize = 948
Name = XXX
DequeueCount = 4224
ConsumerCount = 0
EnqueueCount = 2722

why is DequeueCount greater than EnqueueCount? (the activemq instance was 
started from a clean database and journal) 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to