醒狮狮头图片大全:Accounting and statistics messages
来源:百度文库 编辑:九乡新闻网 时间:2024/05/17 03:41:14
Accounting message types
The are two categories of accounting message, as follows:
MQI accounting messages
MQI accounting messages contain information relating to the number of MQI calls made using a connection to a queue manager.
Queue accounting messages
Queue accounting messages contain information relating to the number of MQI calls made using connections to a queue manager, grouped by queue.
Each queue accounting message can contain up to 100 records, with every record relating to an activity performed by the application with respect to a specific queue.
Accounting messages are recorded only for local queues. If an application makes an MQI call against an alias queue, the accounting data is recorded against the base queue, and, for a remote queue, the accounting data is recorded against the transmission queue.
Collecting MQI accounting information
ALTER QMGR ACCTMQI(ON)
Collecting queue accounting information
To enable accounting information collection for the queue, Q1, use the following MQSC command:
ALTER QLOCAL(Q1) ACCTQ(ON)
To enable accounting information collection for all queues that specify the queue attribute ACCTQ as QMGR, use the following MQSC command:
ALTER QMGR ACCTQ(ON)
Statistics message types
The various types of statistics message follow:
MQI statistics messages
MQI statistics messages contain information relating to the number of MQI calls made during a configured interval. For example, the information can include the number of MQI calls actioned by a queue manager.
Queue statistics messages
Queue statistics messages contain information relating to the activity of a queue during a configured interval. The information includes the number of messages put on, and retrieved from, the queue, and the total number of bytes processed by a queue.
Each queue statistics message can contain up to 100 records, with each record relating to the activity per queue for which statistics were collected.
Statistics messages are recorded only for local queues. If an application makes an MQI call against an alias queue, the statistics data is recorded against the base queue, and, for a remote queue, the statistics data is recorded against the transmission queue.
Channel statistics messages
Channel statistics messages contain information relating to the activity of a channel during a configured interval. For example the information might be the number of messages transferred by the channel, or the number of bytes transferred by the channel.
Each channel statistics message contains up to 100 records, with each record relating to the activity per channel for which statistics were collected.
Collecting MQI statistics information
ALTER QMGR STATMQI(ON)
Collecting queue statistics information
To enable statistics information collection for the queue, Q1, use the following MQSC command:
ALTER QLOCAL(Q1) STATQ(ON)
To enable statistics information collection for all queues that specify the queue attribute STATQ as QMGR, use the following MQSC command:
Statistics and Accounting Monitoring data is controlled using a set of Queue Manager and Queue/Channel attributes. At Qmgr level: STATMQI(OFF | ON) STATQ(NONE | OFF | ON) STATCHL(NONE | OFF | LOW | MEDIUM | HIGH) STATACLS(QMGR | OFF | LOW | MEDIUM | HIGH) STATINT( ACCTMQI(OFF | ON) ACCTQ(NONE | OFF | ON) ACCTINT( ACCTCONO(DISABLED | ENABLED) Configuration of Statistics and Accounting Data
At Channel level (on each channel)
STATCHL(QMGR | OFF | LOW | MEDIUM | HIGH)
At Queue level (on each queue)
STATQ(QMGR | OFF | ON)
ACCTQ(QMGR | OFF | ON)