You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/12/02 05:39:00 UTC
[jira] [Work logged] (AMQ-9548) Add new broker mbean attributes to directly retrieve total number of queues and topics
[ https://issues.apache.org/jira/browse/AMQ-9548?focusedWorklogId=946282&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-946282 ]
ASF GitHub Bot logged work on AMQ-9548:
---------------------------------------
Author: ASF GitHub Bot
Created on: 02/Dec/24 05:38
Start Date: 02/Dec/24 05:38
Worklog Time Spent: 10m
Work Description: kenliao94 commented on code in PR #1288:
URL: https://github.com/apache/activemq/pull/1288#discussion_r1865253286
##########
activemq-broker/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java:
##########
@@ -179,9 +179,17 @@ public interface BrokerViewMBean extends Service {
@MBeanInfo("Topics (broadcasted 'queues'); generally system information.")
ObjectName[] getTopics();
+ @MBeanInfo("Total number of topics")
+ int getTotalTopicsCount();
+
+
@MBeanInfo("Standard Queues containing AIE messages.")
ObjectName[] getQueues();
+ @MBeanInfo("Total number of queues")
+ int getTotalQueuesCount();
+
+
Review Comment:
Btw, this is already resolved :)
Issue Time Tracking
-------------------
Worklog Id: (was: 946282)
Time Spent: 9h 10m (was: 9h)
> Add new broker mbean attributes to directly retrieve total number of queues and topics
> --------------------------------------------------------------------------------------
>
> Key: AMQ-9548
> URL: https://issues.apache.org/jira/browse/AMQ-9548
> Project: ActiveMQ Classic
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.18.5, 6.1.2
> Reporter: Ken Liao
> Assignee: Ken Liao
> Priority: Major
> Fix For: 6.2.0
>
> Time Spent: 9h 10m
> Remaining Estimate: 0h
>
> Right now, to monitor the number of destination, the only way is to read the destinations MBean and get the total destination. However, this means reading all destination names into memory, if the user has 10K+ destination with long destination name, it will be a large amount of memory just to monitor the number of them.
> The proposal here is to add either a new MBean value or a method to obtain that data. We can also add a method to retrieve the first K destination as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact