How to prevent TrueSight Middleware Administrator from resetting WebSphere MQ queue statistics
In order to prevent TrueSight Middleware Administrator from issuing the Reset Queue Statistics command for all connections, you need to add a configuration setting to the wrapper.conf file.
To add the configuration setting to the wrapper.conf file
- Access the wrapper.conf file, according to the relevant platform.
- On Linux: <product dir>/configuration
- On Windows: <product dir>\configuration
- Add the following setting immediately below the other wrapper.java.additional settings:
wrapper.java.additional.NN=-DDISABLE_QUEUE_STATS=true - Make sure that the numbering is consecutive; in other words, you need to replace NN from the example above with the number following the last active wrapper.java.additional entry number.
For example, if wrapper.conf looks like this:
# The following properties may be modified
wrapper.java.additional.13=-Dorg.quartz.threadPool.threadCount=25
wrapper.java.additional.14=-Djetty.port=8080
wrapper.java.additional.15=-Djetty.https.port=8443
wrapper.java.additional.16=-Djavax.net.ssl.keyStore=security/keystore.jks
wrapper.java.additional.17=-Djavax.net.ssl.keyStorePassword=bmcsoftware
wrapper.java.additional.18=-Djava.io.tmpdir=./tmp
wrapper.java.additional.19=-Dcom.mongodb.updaterIntervalNoMasterMS=500
wrapper.java.additional.20=-Dcom.mongodb.updaterConnectTimeoutMS=5000
#wrapper.java.additional.NN=-XX:+HeapDumpOnOutOfMemoryError
#wrapper.java.additional.NN=-XX:HeapDumpPath=.
Then you would add:
wrapper.java.additional.21=-DDISABLE_QUEUE_STATS=true
If it looks like this, however:
# The following properties may be modified
wrapper.java.additional.13=-Dorg.quartz.threadPool.threadCount=25
wrapper.java.additional.14=-Djetty.port=8080
wrapper.java.additional.15=-Djetty.https.port=8443
wrapper.java.additional.16=-Djavax.net.ssl.keyStore=security/keystore.jks
wrapper.java.additional.17=-Djavax.net.ssl.keyStorePassword=bmcsoftware
wrapper.java.additional.18=-Djava.io.tmpdir=./tmp
wrapper.java.additional.19=-Dcom.mongodb.updaterIntervalNoMasterMS=500
wrapper.java.additional.20=-Dcom.mongodb.updaterConnectTimeoutMS=5000
#wrapper.java.additional.21=-XX:+HeapDumpOnOutOfMemoryError
#wrapper.java.additional.22=-XX:HeapDumpPath=.
The number for the new configuration setting would be 23:
wrapper.java.additional.23=-DDISABLE_QUEUE_STATS=true - After making the change, save the wrapper.conf file and stop and start the TrueSight Middleware Administrator service to implement the change.
Now, when accessing Queue Statistics, the following message is displayed (and queue statistics are no longer reset):
Failed to Retrieve resource, error: -2: The Queue Statistics view has been disabled by the Product Administrators. Please contact your Product Administrators if you have any questions.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*