@Yuvraj,
but still that how can I get the message rate per second. of course I can
get avarage, but I am more interested in actual number of message
consumed/produced in a given second. So I thought maybe instead of
repeatedly querying broker, if I write an interceptor, it would be better.

Also I am not very clear about how dequeue count will behave in case of
topics, Can anyone throw some light on this??

@Gary,
Thanks for the info

--Kaustubh

On Wed, Aug 3, 2011 at 10:43 AM, Yuvaraj Vanarase <
yuvaraj.vanar...@synechron.com> wrote:

> Well, if you ready to process command output, you can use activemq-admin
> utility. By using 'query' option one can find various statistics about
> broker/queue.
>
>
>
> Here is an example output, using enqueue/dequeue counts one can find the
> rate may be per second or minute, whatever:
>
>
>
>
>
> D:\INSTALLED\ApacheMQ\apache-activemq-5.4.1\bin>activemq-admin query
> -QQueue=SAMPLE.JMS.QUEUE
>
> Java Runtime: Sun Microsystems Inc. 1.6.0_20
> D:\INSTALLED\Java\jdk1.6.0_20\jre
>
>  Heap sizes: current=61312k  free=60669k  max=910272k
>
>    JVM args:
> -Dactivemq.classpath=D:\INSTALLED\ApacheMQ\apache-activemq-5.4.1\bin\../conf;
> -Dactivemq.home=D:\INSTALLED
>
> \ApacheMQ\apache-activemq-5.4.1\bin\..
> -Dactivemq.base=D:\INSTALLED\ApacheMQ\apache-activemq-5.4.1\bin\..
>
> ACTIVEMQ_HOME: D:\INSTALLED\ApacheMQ\apache-activemq-5.4.1\bin\..
>
> ACTIVEMQ_BASE: D:\INSTALLED\ApacheMQ\apache-activemq-5.4.1\bin\..
>
> Connecting to pid: 4680
>
> DequeueCount = 0
>
> Name = SAMPLE.JMS.QUEUE
>
> MinEnqueueTime = 0
>
> CursorMemoryUsage = 289700
>
> MaxAuditDepth = 2048
>
> Destination = SAMPLE.JMS.QUEUE
>
> AverageEnqueueTime = 0.0
>
> InFlightCount = 0
>
> MemoryLimit = 10485760
>
> Type = Queue
>
> EnqueueCount = 0
>
> MaxEnqueueTime = 0
>
> MemoryUsagePortion = 0.0
>
> ProducerCount = 0
>
> UseCache = true
>
> BlockedProducerWarningInterval = 30000
>
> MaxProducersToAudit = 32
>
> CursorFull = false
>
> BrokerName = localhost
>
> PrioritizedMessages = false
>
> ConsumerCount = 0
>
> ProducerFlowControl = false
>
> Subscriptions = []
>
> QueueSize = 3434
>
> MaxPageSize = 200
>
> CursorPercentUsage = 2
>
> DispatchCount = 0
>
> MemoryPercentUsage = 2
>
> ExpiredCount = 0
>
>
>
>
>
> Regards,
>
> Yuvaraj
>
>
>
> Yuvaraj Vanarase,
>
> Lead Technology - Software
>
> Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 |
> http://www.synechron.com
>
> SYNECHRON -
>
> - Top 10 Best IT Employers for 4 consecutive years (link).
>
> - Celebrating 10 Years!
>
>
>
> -----Original Message-----
> From: kaustubh khasnis [mailto:kaustubh.khas...@gmail.com]
> Sent: Friday, July 29, 2011 7:57 PM
> To: users@activemq.apache.org
> Subject: Message consumed count at broker end per unit time
>
>
>
> HI,
>
> Is there any way in activemq with which we can get count number of messages
>
> consumed/produced *per second/minute at the broker end*?? I know we can get
>
> the queue size in the broker at a given instance , but I need to know the
>
> aggregate count for a unit time.
>
>
>
> Thanks and regards
>
> Kaustubh
>

Reply via email to