Controlling performance events

You control performance events using the PERFMEV queue manager attribute. To enable performance events, set PERFMEV to ENABLED. To disable performance events, set the PERFMEV queue manager attribute to DISABLED.

To set the PERFMEV queue manager attribute to ENABLED, use the following MQSC command:

ALTER QMGR PERFMEV (ENABLED)
To enable specific performance events, set the appropriate queue attribute. Also, specify the conditions that cause the event.
Queue depth events
By default, all queue depth events are disabled. To configure a queue for any of the queue depth events:
  1. Enable performance events on the queue manager.
  2. Enable the event on the required queue.
  3. Set the limits, if required, to the appropriate levels, expressed as a percentage of the maximum queue depth.
Queue service interval events
To configure a queue for queue service interval events you must:
  1. Enable performance events on the queue manager.
  2. Set the control attribute for a Queue Service Interval High or OK event on the queue as required.
  3. Specify the service interval time by setting the QSVCINT attribute for the queue to the appropriate length of time.
Note: When enabled, a queue service interval event can be generated at any appropriate time, not necessarily waiting until an MQI call for the queue is issued. However, if an MQI call is used on a queue to put or remove a message, any applicable performance event is generated at that time. The event is not generated when the elapsed time becomes equal to the service interval time.