This chapter describes the metrics information that a Message Queue broker can provide for monitoring, tuning, and diagnostic purposes. This information can be made available in a variety of ways:
In a log file (see Sending Metrics Data to Log Files)
Interactively with the Command utility’s imqcmd metrics subcommand (see Using the Command Utility)
In metrics messages sent to a metrics topic destination (see Using the Message-Based Monitoring API )
Through JMX MBeans that can be accessed programmatically by Java applications using the JMX Administration API.
The tables in this chapter list the kinds of metrics information available and the forms in which it can be provided. For metrics provided through the Command utility’s imqcmd metrics subcommand, the tables list the metric type with which they can be requested; for those provided in metrics messages, the tables list the metrics topic destination to which they are delivered. All the metrics information in this chapter can be accessed progamatically using the JMX Administration API as described in the Message Queue Developer’s Guide for JMX Clients
The chapter consists of the following sections:
Table 20–1 shows the metrics information that the broker reports for the broker process JVM (Java Virtual Machine) heap.
Table 20–1 JVM Metrics
Metrics Quantity |
Description |
Log File? |
metrics bkrMetric Type |
Metrics Topic |
---|---|---|---|---|
JVM heap: total memory |
Current total memory, in bytes |
Yes |
cxn |
mq.metrics.jvm |
JVM heap: free memory |
Amount of memory currently available for use, in bytes |
Yes |
cxn |
mq.metrics.jvm |
JVM heap: max memory |
Maximum allowable heap size, in bytes |
Yes |
None |
mq.metrics.jvm |
Table 20–2 shows the brokerwide metrics information that the broker reports.
Table 20–2 Brokerwide Metrics
Metrics Quantity |
Description |
Log File? |
metrics bkrMetric Type |
Metrics Topic |
---|---|---|---|---|
Connections |
||||
Num connections |
Total current number of connections for all connection services |
Yes |
cxn |
mq.metrics.broker |
Num threads |
Total current number of threads for all connection services |
Yes |
cxn |
None |
Min threads |
Total minimum number of threads for all connection services |
Yes |
cxn |
None |
Max threads |
Total maximum number of threads for all connection services |
Yes |
cxn |
None |
Stored Messages |
||||
Num messages |
Current number of payload messages stored in memory and persistent store |
No |
mq.metrics.broker |
|
Total message bytes |
Total size in bytes of payload messages currently stored in memory and persistent store |
No |
None |
mq.metrics.broker |
Message Flow |
||||
Num messages in |
Cumulative number of payload messages received since broker started |
Yes |
ttl |
mq.metrics.broker |
Num messages out |
Cumulative number of payload messages sent since broker started |
Yes |
ttl |
mq.metrics.broker |
Rate messages in |
Current rate of flow of payload messages into broker |
Yes |
rts |
None |
Rate messages out |
Current rate of flow of payload messages out of broker |
Yes |
rts |
None |
Message bytes in |
Cumulative size in bytes of payload messages received since broker started |
Yes |
ttl |
mq.metrics.broker |
Message bytes out |
Cumulative size in bytes of payload messages sent since broker started |
Yes |
ttl |
mq.metrics.broker |
Rate message bytes in |
Current rate of flow of payload message bytes into broker |
Yes |
rts |
None |
Rate message bytes out |
Current rate of flow of payload message bytes out of broker |
Yes |
rts |
None |
Num packets in |
Cumulative number of payload and control packets received since broker started |
Yes |
ttl |
mq.metrics.broker |
Num packets out |
Cumulative number of payload and control packets sent since broker started |
Yes |
ttl |
mq.metrics.broker |
Rate packets in |
Current rate of flow of payload and control packets into broker |
Yes |
rts |
None |
Rate packets out |
Current rate of flow of payload and control packets out of broker |
Yes |
rts |
None |
Packet bytes in |
Cumulative size in bytes of payload and control packets received since broker started |
Yes |
ttl |
mq.metrics.broker |
Packet bytes out |
Cumulative size in bytes of payload and control packets sent since broker started |
Yes |
ttl |
mq.metrics.broker |
Rate packet bytes in |
Current rate of flow of payload and control packet bytes into broker |
Yes |
rts |
None |
Rate packet bytes out |
Current rate of flow of payload and control packet bytes out of broker |
Yes |
rts |
None |
Destinations |
||||
Num destinations |
Current number of physical destinations |
No |
None |
mq.metrics.broker |
Table 20–3 shows the metrics information that the broker reports for individual connection services.
Table 20–3 Connection Service Metrics
Metrics Quantity |
Description |
Log File? |
metrics svcMetric Type |
Metrics Topic |
---|---|---|---|---|
Connections |
||||
Num connections |
Current number of connections |
No |
None |
|
Num threads |
Current number of threads |
No |
cxn |
None |
Min threads |
Minimum number of threads assigned to service |
No |
cxn |
None |
Max threads |
Maximum number of threads assigned to service |
No |
cxn |
None |
Message Flow |
||||
Num messages in |
Cumulative number of payload messages received through connection service since broker started |
No |
ttl |
None |
Num messages out |
Cumulative number of payload messages sent through connection service since broker started |
No |
ttl |
None |
Rate messages in |
Current rate of flow of payload messages into broker through connection service |
No |
rts |
None |
Rate messages out |
Current rate of flow of payload messages out of broker through connection service |
No |
rts |
None |
Message bytes in |
Cumulative size in bytes of payload messages received through connection service since broker started |
No |
ttl |
None |
Message bytes out |
Cumulative size in bytes of payload messages sent through connection service since broker started |
No |
ttl |
None |
Rate message bytes in |
Current rate of flow of payload message bytes into broker through connection service |
No |
rts |
None |
Rate message bytes out |
Current rate of flow of payload message bytes out of broker through connection service |
No |
rts |
None |
Num packets in |
Cumulative number of payload and control packets received through connection service since broker started |
No |
ttl |
None |
Num packets out |
Cumulative number of payload and control packets sent through connection service since broker started |
No |
ttl |
None |
Rate packets in |
Current rate of flow of payload and control packets into broker through connection service |
No |
rts |
None |
Rate packets out |
Current rate of flow of payload and control packets out of broker through connection service |
No |
rts |
None |
Packet bytes in |
Cumulative size in bytes of payload and control packets received through connection service since broker started |
No |
ttl |
None |
Packet bytes out |
Cumulative size in bytes of payload and control packets sent through connection service since broker started |
No |
ttl |
None |
Rate packet bytes in |
Current rate of flow of payload and control packet bytes into broker through connection service |
No |
rts |
None |
Rate packet bytes out |
Current rate of flow of payload and control packet bytes out of broker through connection service |
No |
rts |
None |
Table 20–4 shows the metrics information that the broker reports for individual destinations.
Table 20–4 Physical Destination Metrics