+

Search Tips | Advanced Search

Enabling 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:

Table 1. Enabling queue service interval events using MQSC
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)
.