+

Search Tips | Advanced Search

Enable queue service interval events

To configure a queue for queue service interval events you set the appropriate queue manager and queue attributes.


About this task

The high and OK events are mutually exclusive; that is, when one is enabled, the other is automatically disabled:

  • When a high event is generated on a queue, the queue manager automatically disables high events and enables OK events for that queue.
  • When an OK event is generated on a queue, the queue manager automatically disables OK events and enables high events for that queue.

Queue service interval event Queue attributes
Queue Service Interval High
Queue Service Interval OK
No queue service interval events
QSVCIEV (HIGH)
QSVCIEV (OK)
QSVCIEV (NONE)
Service interval
QSVCINT (tt
) where tt is the service
interval time in milliseconds.
Perform the following steps to enable queue service interval events:


Procedure

  1. Set the queue manager attribute PERFMEV to ENABLED. Performance events are enabled on the queue manager.
  2. Set the control attribute, QSVCIEV, for a Queue Service Interval High or OK event on the queue, as required.
  3. Set the QSVCINT attribute for the queue to specify the appropriate service interval time.


Example

To enable Queue Service Interval High events with a service interval time of 10 seconds (10 000 milliseconds) use the following MQSC commands:
  ALTER QMGR PERFMEV(ENABLED)

  ALTER QLOCAL('MYQUEUE') QSVCINT(10000) QSVCIEV(HIGH)
. Parent topic: Queue service interval events

Last updated: 2020-10-04