kenliao94 opened a new pull request, #1288: URL: https://github.com/apache/activemq/pull/1288
**What problems does this PR solve?** Currently, to get the total number of queues and topics on the broker using JMX, one needs to query the attribute values of Queues and Topics on the broker MBean then post-process it (finding the length of returned array) to get that data. This can be resource intensive (unnecessary copy of the data) on the customer application using JMX or Jolokia if user has tens or thousands of destinations and all the user wants is the number. Hence this PR added two attributes so customer application can just query the total number without getting the list of topics and queues first. **Why is it beneficial to merge into ActiveMQ?** This will be beneficial for users with high number of destinations. They can now monitor the total number of queues and topics in a more performant way. **How do you make sure this PR is well tested?** - Added unit test in the PR - Tested with Jolokia (cross-checked with the web console) [see attachment below] - Tested with Jconsole (cross-checked with the web console) [see attachment below]    -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact