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 with the behavior
of non-composite topics. Would you be willing to create a feature request
in JIRA asking for that to be added?

Tim

On Fri, Feb 11, 2022, 2:38 AM Simon Lundström <si...@su.se> wrote:

> 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 any topic consumers. I just realized that all of our
> topics are compositeTopics.
>
> > And for that matter, do you have at least one consumer connected and
> > consuming messages from the topic? If there are no consumers, messages
> > produced to the topic are immediately discarded and I don't know if
> that's
> > done as an enqueue-dequeue or as a no-op but I suspect the latter, which
> > would explain what you're seeing.
>
> I'm guessing that the internal consumer/producer that the
> compositeTopics don't behave like a normal consumer?
>
> > On Wed, Feb 9, 2022, 4:15 PM Matt Pavlovich <mattr...@gmail.com> wrote:
> >
> > > How are you sending messages to the broker?
>
> JMS, STOMP and AMQP.
>
> BR,
> - Simon
>
> > On Wed, Feb 9, 2022, 4:15 PM Matt Pavlovich <mattr...@gmail.com> wrote:
> >
> > > 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