KB Article #177090
Monitoring Sentinel JVM using JMX
Problem
-- How to monitor Sentinel JVM using JMX
Resolution
- Note that we do not have any specific support for JMX, in the sense that we do not provide specific MBeans to monitor or manage Sentinel.
Therefore, you will only see the default information provided by the JVM (memory, threads, etc.).
- To enable JMX (non secure), you have to add the following lines in [Sentinel_Home]/bin/trkserver:
JAVA_OPTION="${JAVA_OPTION} -Dcom.sun.management.jmxremote"
JAVA_OPTION="${JAVA_OPTION} -Dcom.sun.management.jmxremote.port=8887"
JAVA_OPTION="${JAVA_OPTION} -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTION="${JAVA_OPTION} -Dcom.sun.management.jmxremote.ssl=false"
under the line:
JAVA_OPTION="${JAVA_OPTION} –Xmx1024M"
(Xmx value can be different in your environment)
- Restart Sentinel
- Then you can test the connection using jconsole (we do not deliver it, it is delivered with JDK):
jconsole sentinel_hostname:8887
a similar windows should appear:
