Hi, 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) getBrokerService().getManagementContext().newProxyInstance(brokerName, BrokerViewMBean.class, true); myCurrentDurableSubscriberCount = brokerView.getDurableTopicSubscribers().length; myCurrentDynamicProducerCount = brokerView.getDynamicDestinationProducers().length; . . . (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) Thanks, Anuj -- View this message in context: http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-ActiveMQ-broker-tp4676635p4676902.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.