[英]How to monitoring MQPUT and MQGET?
我想监控队列中的消息,有多少producer message put了,有多少client get了message? 我在 MQ Explorer 和 IBM MQ Web 控制台中看到,但它只是队列深度,没有队列消息事务的放置和获取。
您需要编写自己的 MQ 监控工具或购买一个(或使用开源的)。 您可以在此处找到开源和商业 MQ 监控工具的列表。
它是“MQ 退出编程”。 这是官方工具
To monitor the total MQGET/MQPUT operations on MQ QMGR for specific queues, we can use amqsrua command by specifying the queue name.
**The usage of the command is as below:**
amqsrua [-m QMGR-NAME] [-c CLASS-NAME]
[-o object name] [-t TYPE-NAME]
[-p metadata prefix]
[-n publication count]
Example:
* To get MQGET Counts:
amqsrua -m <QMGR Name> -c STATQ -t GET -o <Queue Name> -n1
* To get MQPUT Counts:
amqsrua -m <QMGR Name> -c STATQ -t PUT -o <Queue Name> -n1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.