Monitoring of queues holding unacknowledged messages
book
Article ID: KB0080156
calendar_today
Updated On:
Products
Versions
TIBCO Enterprise Message Service
All
Description
Delivered Msgs” is the number of messages in the queue that have been delivered to a consumer, but not yet acknowledged.
“Pending Msgs” is the number of all messages in the queue. (This count includes the number of delivered messages)
To monitor the unacknowledged messages, you could setup a monitoring script on the " Delivered Msgs" part of the show queue <queueName> output.
Issue/Introduction
When a message is delivered, the client "takes" control of it and as such it is no longer "marked" as available. To monitor the unacknowledged messages we can use the delivered message count.
Environment
All
Resolution
We can monitor the delivered messages count for the problematic queue using HAWK. In the Hawk conole, we can use getQueue() method of JMS controller to monitor the messages on a specific queue. This method returns information about queue statistics based on given time interval. From the output of getQueue method, you can check for the delivered message count (deliveredMessageCount) field which would, in turn, give the number of unacknowledged messages for that queue.
Also we could create a program by calling EMS admin API to achieve this.