Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-5923

Add Pending Message Size Metrics

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.13.0
    • Component/s: Broker
    • Labels:
      None

      Description

      Right now the PendingMessageCursor keeps track of the number of pending messages (the size() method). It would be useful to also report back the total message size besides just the count so we know how much memory or disk space is being used by pending messages.

      Now that KahaDB is keeping track of the size of each message as of 5.12, it should be possible to report back this value in a non-blocking way. For a Queue this is pretty straightforward but for DurableSubscriptions some work will need to be done to keep track of the message size for unacked messages for each subscription.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cshannon Christopher L. Shannon
                Reporter:
                cshannon Christopher L. Shannon
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: