You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Prisca POLYTE <po...@gmail.com> on 2012/04/26 15:42:14 UTC

How does ActiveMQ compute statistics exposed though JMX

Hello,

I am a little confused about some properties (AverageEnqueueTime,
MaxEnqueueTimethat,
MinEnqueueTime) that are exposed via JMX.

Are these properties are computed ?

this is a brief extract of values :
[ ]
date AverageEnqueueTime MaxEnqueueTime MinEnqueueTime
02/04/2012 12:35 0,300976 4246 0
02/04/2012 12:35 0,249668 175 0
02/04/2012 12:35 0,251931 62 0
02/04/2012 12:35 0,277158 64 0
02/04/2012 12:35 0,234023 2 0
02/04/2012 12:35 0,253326 57 1
02/04/2012 12:35 0,289156 4111 0
02/04/2012 12:35 0,206312 2 1
02/04/2012 12:35 0,256533 29 1
02/04/2012 12:35 0,240266 81 1
02/04/2012 12:35 0,260581 560 1
02/04/2012 12:35 0,336377 4291 0
02/04/2012 12:35 0,264730 70 0
02/04/2012 12:35 0,249669 62 0
02/04/2012 12:35 0,248694 99 1
02/04/2012 12:35 0,254988 58 0

[]


It does not seem that the MaxEnqueueTime is absolute because it changes too
much.
Are they computed on per time basis ? which one ?

and sometimes the min is greater than the average. It is crazy.

What am I missing ?

thanks for your help.


Regards
Prisca

Re: How does ActiveMQ compute statistics exposed though JMX

Posted by Gary Tully <ga...@gmail.com>.
have a peek at the source:
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/

For the process time:
Time capture at:
org.apache.activemq.broker.region.RegionBroker#send

Statistic update at:
org.apache.activemq.broker.region.RegionBroker#preProcessDispatch

Statistic impl:
org.apache.activemq.management.TimeStatisticImpl#addTime


On 26 April 2012 14:42, Prisca POLYTE <po...@gmail.com> wrote:
> Hello,
>
> I am a little confused about some properties (AverageEnqueueTime,
> MaxEnqueueTimethat,
> MinEnqueueTime) that are exposed via JMX.
>
> Are these properties are computed ?
>
> this is a brief extract of values :
> [ ]
> date AverageEnqueueTime MaxEnqueueTime MinEnqueueTime
> 02/04/2012 12:35 0,300976 4246 0
> 02/04/2012 12:35 0,249668 175 0
> 02/04/2012 12:35 0,251931 62 0
> 02/04/2012 12:35 0,277158 64 0
> 02/04/2012 12:35 0,234023 2 0
> 02/04/2012 12:35 0,253326 57 1
> 02/04/2012 12:35 0,289156 4111 0
> 02/04/2012 12:35 0,206312 2 1
> 02/04/2012 12:35 0,256533 29 1
> 02/04/2012 12:35 0,240266 81 1
> 02/04/2012 12:35 0,260581 560 1
> 02/04/2012 12:35 0,336377 4291 0
> 02/04/2012 12:35 0,264730 70 0
> 02/04/2012 12:35 0,249669 62 0
> 02/04/2012 12:35 0,248694 99 1
> 02/04/2012 12:35 0,254988 58 0
>
> []
>
>
> It does not seem that the MaxEnqueueTime is absolute because it changes too
> much.
> Are they computed on per time basis ? which one ?
>
> and sometimes the min is greater than the average. It is crazy.
>
> What am I missing ?
>
> thanks for your help.
>
>
> Regards
> Prisca



-- 
http://fusesource.com
http://blog.garytully.com