MQ

MQ Statistics. Practising self-control 

Mon November 11, 2019 12:48 PM

MQ Statistics. Practising self-control

Simon Davitt |Dec 6 2016 Updated

Caveat lector

 

The properties described in this blog should be used with extreme caution. The default values used by the queue manager are the tried and thoroughly tested. Changing the defaults will certainly cause a change in behaviour for  the sample application.

 

 

With the advent of MQ V9 users can now obtain a plethora of statistics information regarding MQ's usage of memory, CPU, MQ API,  IO  and much more.

  

By default the queue manager publishes information to subscribing applications every 10 seconds. This interval is suitable for most users and the sample application amqsrua relies on the 10 second interval because it retrieves published messages using an MQGET 30 second wait interval.  If required the user can gather these statistics messages and summarise the values as appropriate for their requirements.

 

It is, however, possible to tailor the interval at which the various types of statistics messages are published. For example, if you wanted to write your own application to monitor memory usage it might be more appropriate to receive published messages once every hour.

 

This is controlled by a series of name/value properties in the TuningParameters: stanza of the queue manager's qm.ini file.

 

#

# MonitorPublishBackStop=[ n | 300 ]

# Number of seconds between statistics message publish events while no subscribers are active where n = integer_number_of_seconds.

# The default value is 300 seconds.

#
# MonitorPublishHeartBeat=[ n | 10 ] 

# Number of seconds between statistics message publish events where n = integer_number_of_seconds.

# The default value is 10 seconds which allows the sample application  (/opt/mqm/samp/bin/amqsrua)  to work correctly.

#
# MonitorPublishSysFreq=[ n | MonitorPublishHeartBeat ]

# Default numbers of seconds between CPU/SystemSummary statistics message publish events where n=integer_number_of_seconds

#
# MonitorPublishMQIFreq=[ n | MonitorPublishHeartBeat ]

# The numbers of seconds between MQI statistics message publish events where n=integer_number_of_seconds.

# The default value = MonitorPublishHeartBeat

#
# MonitorPublishLogFreq=[ n | MonitorPublishHeartBeat ]

# Default numbers of seconds between DISK/Log statistics message publish events where n=integer_number_of_seconds.

# The default value = MonitorPublishHeartBeat

#
# MonitorPublishExpiry=[ n | 60*60*10]

# Expiry time published statistics messages which are not consumed by a subscriber where n= integer_number_of_tenths_of_a_seconds

#

Entry Details

Statistics
0 Favorited
15 Views
1 Files
0 Shares
5 Downloads
Attachment(s)
docx file
MQ Statistics. Practising self-control.docx   14 KB   1 version
Uploaded - Mon November 11, 2019

Tags and Keywords

Related Entries and Links

No Related Resource entered.