Use JConsole to monitor Tomcat

Source: Internet
Author: User
Tags jconsole

Use JConsole to monitor Tomcat

Use of JConsole:

JConsole is a JMX-based GUI tool used to connect to a running JVM. Monitors local and remote java programs.

JConsole can monitor Tomcat on local Tomcat and remote servers

Configure the following before monitoring:

1. If you want to monitor remote Java processes, you need to make corresponding settings on the remote server.

1) In windows, you need to modify the tomcat main directory \ bin \ catalina. bat file

Set

Set JAVA_OPTS = % JAVA_OPTS %-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. util. logging. config. file = "% CATALINA_BASE % \ conf \ logging. properties"

Modify

Set JAVA_OPTS = % JAVA_OPTS %-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. util. logging. config. file = "% CATALINA_BASE % \ conf \ logging. properties"

-Dcom. sun. management. jmxremote

-Dcom. sun. management. jmxremote. port = "8080"

-Dcom. sun. management. jmxremote. authenticate = "false"

-Dcom. sun. management. jmxremote. ssl = "false"

2) in Linux, You need to modify the tomcat main directory \ bin \ catalina. sh File

Add a row

CATALINA_OPTS = "$ JAVA_OPTS-Djava. rmi. server. hostname = 218.28.198.188-Dcom. sun. management. jmxremote. port = 9527-Dcom. sun. management. jmxremote. authenticate = false-Dcom. sun. management. jmxremote. ssl = false"

Then you can use JConsole to monitor Tomcat.

Click jconsole.exe under % JAVA_HOME % \ bin.

This article permanently updates the link address:

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.