Setting ACTVTRC to control collection of activity trace information

Use the queue manager attribute ACTVTRC to control the collection of MQI application activity trace information

About this task

Application activity trace messages are generated only for connections that begin after application activity trace is enabled. The ACTVTRC parameter can have the following values:
ON
API activity trace collection is switched on
OFF
API activity trace collection is switched off
Note: The ACTVTRC setting can be overridden by the queue manager ACTVCONO parameter. If you set the ACTVCONO parameter to ENABLED, then the ACTVTRC setting can be overridden for a given connection using the Options field in the MQCNO structure. See Setting MQCONNX options to control collection of activity trace information.

Example

To change the value of the ACTVTRC parameter, you use the MQSC command ALTER QMGR. For example, to enable MQI application activity trace information collection use the following MQSC command:

ALTER QMGR ACTVTRC(ON)

What to do next

The simplest way to view the contents of application activity trace messages is to use the amqsact sample program.

Enabling application activity trace can affect performance. The overhead can be reduced by tuning the ActivityCount and the ActivityInterval settings. See Tuning the performance impact of application activity trace.