How are you sending messages to the broker?

> On Feb 9, 2022, at 11:12 AM, Simon Lundström <si...@su.se> wrote:
> 
> 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 difference, it's all JMX).
> 
> How are these metrics updated? Nothing related to advisory messages
> right?
> 
> BR,
> - Simon
> 
> On Wed, 2022-02-09 at 13:01:57 +0100, Matt Pavlovich wrote:
>> 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 <si...@su.se> wrote:
>>> 
>>> 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 queue.
>>> 
>>> However for topics the EnqueueCount does not move and I can't find any
>>> other attribute that moves either.
>>> 
>>> How can I see how many messages are or has been sent to a topic?
>>> 
>>> BR,
>>> - Simon
>> 

Reply via email to