Windows perfmon and WebSphere MQ
SrihariKulkarni 120000KKWK Visits (4587)
There are four vital WebSphere MQ queue parameters that can be monitored with perfmon.
1. Queue depth
2. Percentage of queue depth
3. Inward traffic to a queue - in terms of number of messages per second.
4. Outward traffic from a queue - in terms of number of messages per second.
To monitor any of these parameters, load the Windows Performance Monitor using the perfmon command. Right-click on the graph area and choose Add counters... to continue. Choose MQSeries Queues from the Performance objects drop down list. Choose the parameter and the queue and you wish to monitor and get started.
Alright. But why aren't all my queues shown ?
Not all queues are available for monitoring. The following set of conditions must match for a queue to be available for monitoring.
1. Queue must be a local queue.
2. The queue must have atleast one message in it OR there must be activity in the queue at the time Add Counters... was clicked.
3. Of course, the queue manager holding the queue must be in the running state.
How about Windows 64 bit ?
Windows 64 bit operating systems come with 2 versions of the Performance Monitor - one 64-bit and a 32-bit version. You will be able to monitor WebSphere MQ queues only with the 32-bit version of the Performance Monitor on a 64-bit machine. This is because the Performance Monitor interface for WebSphere MQ is a 32-bit DLL. And finally, if you'd want to figure out where to find the 32-bit version of the Windows Performance Monitor on a 64-bit machine, look into <Windows Install Dir>\syswow64
The WebSphere MQ documentation for the performance monitor interface is available here (MQ v6) and here (MQ v7)