Let Tomcat support JMX

Source: Internet
Author: User
Tags goto

JMX Monitoring of application systems is very concise and convenient, but Tomcat does not set up to start JMX

After research, you can change Tomcat's startup file to be Tomcat support JMX

Find Tomcat_home/bin/catalina.bat

Open with Notepad to find such a line "if not exist"%catalina_home%/bin/tomcat-juli.jar "goto Nojuli"

Then insert the following code below this line


If "%1" "= =" "Start" set java_opts=%java_opts%-dcom.sun.management.jmxremote.port=1090-

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"
Goto Nojuli

1090 of which is a JMX service port

Once started, you can perform "jconsole" on the command line to view various information about JMX

Test Environment Version:

Tomcat 5.5.17

Java 1.5

Windows XP SP2

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.