Use JMX to monitor Tomcat Clusters

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.