Accounting message generation when applications disconnect
Accounting messages are generated when an application disconnects from the queue manager. Intermediate accounting messages are also written for long running IBM MQ applications.
Accounting messages are generated in either of the following ways when an application disconnects:
- The application issues an MQDISC call
- The queue manager recognises that the application has terminated
Intermediate accounting messages are written for long running IBM MQ applications when the interval since the connection was established or since the last intermediate accounting message that was written exceeds the configured interval. The queue manager attribute, ACCTINT, specifies the time, in seconds, after which intermediate accounting messages can be automatically written. Accounting messages are generated only when the application interacts with the queue manager, so applications that remain connected to the queue manager for long periods without executing MQI requests do not generate accounting messages until the execution of the first MQI request following the completion of the accounting interval.
The default accounting interval is 1800 seconds (30 minutes). For example, to change the accounting interval to 900 seconds (15 minutes) use the following MQSC command:ALTER QMGR ACCTINT(900)Parent topic: Accounting information collection