简体   繁体   中英

How to monitoring MQPUT and MQGET?

I want to monitoring the message of queue, how much producer message put and how much client has get message? i saw in MQ Explorer and IBM MQ Web Console but it's just queue depth there is no queue message transaction put and get.

You need to either write your own MQ Monitoring tool or buy one (or use an open source one). You can find a list of open source and commercial MQ Monitoring tools here .

It's "MQ Exit Programing". here is official util

在此处输入图像描述

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 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM