4 Replies Latest reply on May 2, 2011 2:28 PM by Clebert Suconic

    Question regarding JMX monitoring for the queue

    S ks Newbie

      Iam using JMX monitoring for monitoring the TOPICs and QUEUEs.

       

      Iam using org.hornetq.core.management.impl.QueueControlImpl for certain Attributes .

      what is the difference between MessageCount , MessagesAdded , DeliveringCount and ScheduledCount ?

       

      Also i see MessageCount in org.hornetq.jms.management.impl.JMSTopicControlImpl too.

      But i belive this is similar to QueueControlImpl messageCount, is it?

       

      Also there are certain Message counters attached to <message-counter-enabled>true</message-counter-enabled> and JMSQueueControl .

      Do i need to enable the settings even to make above message counters work?

        • 1. Question regarding JMX monitoring for the queue
          Andy Taylor Master

          am using org.hornetq.core.management.impl.QueueControlImpl for certain Attributes .

          what is the difference between MessageCount , MessagesAdded , DeliveringCount and ScheduledCount ?

          message count is al messages in the queue, including scheduled and delivered but not acked.

           

          messages added is the number of message that have rrived on the queue since last restart

           

          delivering count is messages delivered to the consumer but not yet acked

           

          scheduled messages are, well scheduled messages.

           

          Also i see MessageCount in org.hornetq.jms.management.impl.JMSTopicControlImpl too.

          But i belive this is similar to QueueControlImpl messageCount, is it?

           

          yes.

           

          Also there are certain Message counters attached to <message-counter-enabled>true</message-counter-enabled> and JMSQueueControl .

          Do i need to enable the settings even to make above message counters work?

          no, message counters are separate functionality used for gathering more complex statistics.

          • 2. Question regarding JMX monitoring for the queue
            S ks Newbie

            When iam running Paging , my DurableMessageCount doesnt increase. Though my producer is able to send the messages to the Hornetq . We are using Paging . I can see that Paging directly is constantly increasing , so i belive Messages are getting paged.

             

            Is there a counter to see how many messages are getting paged too?

            • 3. Question regarding JMX monitoring for the queue
              rhinmass Newbie

              rahul singh wrote:

               

              Iam using JMX monitoring for monitoring the TOPICs and QUEUEs.

               

              Iam using org.hornetq.core.management.impl.QueueControlImpl for certain Attributes .


              Rahul, would you mind sharing how you were able to create a QueuControlImpl class.  I'm having trouble figuring it out.

              • 4. Question regarding JMX monitoring for the queue
                Clebert Suconic Master

                This was improved on HornetQ 2.2.2.

                 

                You would get the message cached at the Address Level before, and we have it with cursors now on HornetQ