activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Question regarding to EnqueueCount and ExpiredCount for topic destination
Date Sat, 04 May 2013 00:43:32 GMT
Expected behavior, at least based on how the code is written.
Looks like the message is no longer considered "enqueued" once it's
expired. It is no longer waiting for dispatch.


On Fri, May 3, 2013 at 9:52 AM, Yi Pan <ypan@yahoo-inc.com> wrote:

> Hi, all,
>
> We have observed the following behavior in the ActiveMQ destination MBean
> stats:
> While there is no incoming messages to a topic destination, the
> EnqueueCount
> keeps decreasing instead of stay the same.
> Further investigation showed that ExpiredCount is increasing at exactly the
> same rate as EnqueueCount decreases:
> First run to get stats on the particular destination:
>     "ExpiredCount": 1503606
>     "EnqueueCount": 170303
> Second run:
>     "ExpiredCount": 1504372
>     "EnqueueCount": 169537
>
> Note that ExpiredCount increased by 766 between the two samples and
> EnqueueCount decreased by exactly the same amount.
>
> According to the explanation provided by ActiveMQ official web
> (http://activemq.apache.org/how-do-i-find-the-size-of-a-queue.html),
> EnqueueCount and ExpiredCount are:
> Enqueue Count - the total number of messages sent to the queue since the
> last restart
> Expired Count - the number of messages that were not delivered because they
> were expired
>
> We don't see any reason why those two stats are linked in such a way. Can
> someone help to provide some explanation?
>
> Thanks!~
>
> -Yi
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Question-regarding-to-EnqueueCount-and-ExpiredCount-for-topic-destination-tp4666634.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message