JMX is a framework and specification proposed by Sun in Java 5 to monitor the JVM running status. JMX can be used to conveniently detect the running status of each node in the Tomcat cluster. Learn about JMX can read this article http: www.linuxidc.comLinux2011-0839831.htm. The procedure is very simple. First, open a Tomcat section in the text editor.
JMX is a framework and specification proposed by Sun in Java 5 for monitoring JVM running status. Through JMX, you can easily detectMcAtClusterThe running status of each node. Understanding JMX can read this article http://www.linuxIdC.com/linux/2011-08/39831.htm.
The procedure is very simple. First, open a TomCatNode Catalina. bat, findSetJAVA_OPTS = % JAVA_OPTS %-Djava. util. logging. manager = org. apache. juli. ClassLoaderLogManager-Djava. util. logging. config.File= "% CATALINA_BASE % \ conf \ logging. properties", set JAVA_OPTS = % JAVA_OPTS %-Dcom.SuN. management. jmxremote. port = 10090-Dcom. sun. management. jmxremote. ssl = faLsE-Dcom. sun. management. jmxremote. authenticate = false-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. util. logging. config. file = "% CATALINA_BASE % \ conf \ logging. properties ", here 10090 is the monitoring client, that is, the jconsole remotely accesses the JMX proxy port through RMI. Note that different ports need to be set when a server runs multiple tomcat nodes. The author sets this port to 10090, restart the current tomcat node.
Run jconsole (in the bin directory of the jdk installation directory) and enter the IP address of the tomcat node to be monitored and the port Just configured. A similar interface is displayed, this interface shows the status of all running times of the current node.