activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khandelwalanuj <>
Subject Re: Current Connection Count for ActiveMQ broker
Date Tue, 28 Jan 2014 15:41:03 GMT

I am trying to do periodic logging of ActiveMQ stats using plugin. I will
log all the stats per minutes.
Stats includes: enqueue count, dequeue count, dispatch count, connection
count, Producer/consumer count, Durable subscriber count and Dynamic
Destination producer count etc.

The way I am doing is by creating 
*BrokerViewMBean brokerView = (BrokerViewMBean)
BrokerViewMBean.class, true);
myCurrentDurableSubscriberCount = 
myCurrentDynamicProducerCount = 
(similarly I am getting other values)


Is this the best way way to implement the requirement ? 
Are there any other getter methods available for these stats because it
looks to me a heavy operation which might bring down the broker performance
since it is creating lot of objects and strings in one call and I have to
call this every minute (for periodic logging per minute) 


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message