Re: ActiveMQ Classic topic JMX metrics

2022-02-14 Thread Simon Lundström
On Fri, 2022-02-11 at 17:01:54 +0100, Matt Pavlovich wrote: > Server-side “Composite Topic” using a destination interceptor to route to > other destinations? Yes. > Client-side “Composite Topic” where you specify multiple destinations >

Re: ActiveMQ Classic topic JMX metrics

2022-02-14 Thread Simon Lundström
On Fri, 2022-02-11 at 13:54:25 +0100, Tim Bain wrote: > Do the JMX counters for the queues that make up the composite topics > increment as expected? Yep! > I've never used composite topics so I've got no direct experience, but I > would expect the internal consumers to show up in JMX and the

Re: ActiveMQ Classic topic JMX metrics

2022-02-11 Thread Matt Pavlovich
Server-side “Composite Topic” using a destination interceptor to route to other destinations? ..or.. Client-side “Composite Topic” where you specify multiple destinations session.createConsumer(session.createTopic(“TOPIC.A,TOPIC.B”)) ? Either way, you should see consumer counts on the

Re: ActiveMQ Classic topic JMX metrics

2022-02-11 Thread Tim Bain
Do the JMX counters for the queues that make up the composite topics increment as expected? I've never used composite topics so I've got no direct experience, but I would expect the internal consumers to show up in JMX and the counters for both the topics and the consumers to increase, consistent

Re: ActiveMQ Classic topic JMX metrics

2022-02-11 Thread Simon Lundström
On Thu, 2022-02-10 at 14:05:42 +0100, Tim Bain wrote: > It's been a while since I've looked at the JMX beans, but I believe that > each topic consumer has its own MBean somewhere in the tree, with > individual per-consumer stats. Are those increasing even though the topic > is not? I can't find

Re: ActiveMQ Classic topic JMX metrics

2022-02-10 Thread Tim Bain
It's been a while since I've looked at the JMX beans, but I believe that each topic consumer has its own MBean somewhere in the tree, with individual per-consumer stats. Are those increasing even though the topic is not? And for that matter, do you have at least one consumer connected and

Re: ActiveMQ Classic topic JMX metrics

2022-02-09 Thread Matt Pavlovich
How are you sending messages to the broker? > On Feb 9, 2022, at 11:12 AM, Simon Lundström wrote: > > If you are talking about /amq/admin/topics.jsp when you say console it's > all zeroes. > >

Re: ActiveMQ Classic topic JMX metrics

2022-02-09 Thread Simon Lundström
If you are talking about /amq/admin/topics.jsp when you say console it's all zeroes. org.apache.activemq:type=Broker,brokerName=activemq.it.su.se,destinationType=Topic,destinationName=exampletopic does not change even if I press Refresh in JVisualVM. Same in JConsole (not that it makes any

Re: ActiveMQ Classic topic JMX metrics

2022-02-09 Thread Jean-Baptiste Onofre
Hi Simon, Do you refresh the MBean attributes ? JMX is “static”, so the client has to refresh the attributes. Regards JB > Le 9 févr. 2022 à 11:10, Simon Lundström a écrit : > > Hey all! > > Via JMX you can fetch metrics about e.g. queues in ActiveMQ Classic. So > the queue somequeue have

Re: ActiveMQ Classic topic JMX metrics

2022-02-09 Thread Matt Pavlovich
Hello Simon- Those JMX counter metrics most definitely change. If you are using tool, such as console you may need to click ‘Refresh’ as data is going through. -Matt Pavlovich > On Feb 9, 2022, at 4:10 AM, Simon Lundström wrote: > > Hey all! > > Via JMX you can fetch metrics about e.g.

ActiveMQ Classic topic JMX metrics

2022-02-09 Thread Simon Lundström
Hey all! Via JMX you can fetch metrics about e.g. queues in ActiveMQ Classic. So the queue somequeue have the EnqueueCount attribute at org.apache.activemq:type=Broker,brokerName=activemq.su.se,destinationType=Queue,destinationName=somequeue which contains the number of messages enqueued to the