JMX Remote monitoring Linux tomcat feature implementation

Source: Internet
Author: User
Tags tomcat server

Author remote server operating system CentOS 7.0, Tomcat version 7.0

1. Linux Tomcat Configuration 1.1 catalina_opt Configuration

You can add the following configuration in the catalina.sh file

catalina_home=/usr/local/tomcat_fd02_mcjava_opts="$JAVA _opts-djava.rmi.server.hostname= xxx.xxx.xxx.xxx \-dcom.sun.management.jmxremote.ssl=false- Dcom.sun.management.jmxremote.authenticate=false"
Configuring Jmxremotelifecyclelistener in 1.2 server

Enter the Tomcat Lib directory to get the Catalina-jmx-remote.jar

wget Http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.57/bin/extras/catalina-jmx-remote.jar

Add Configuration in Server.xml

  <className= "Org.apache.catalina.mbeans.JmxRemoteLifecycleListener"           Rmiregistryportplatform= "8999"  rmiserverportplatform= "9000"/>

Where 8999 and 9000 are the JMX port numbers we added

1.3 Firewall configuration port or firewall off

Turn off firewall commands

Systemctl Stop Firewalld.service #停止firewall1.4 Rebooting the Tomcat server

2. Local VisualVM configuration

Create a new item under Remote, with the corresponding IP and port configured, the port in this example is 8999

To be continued: Add JMX Management with user authentication information

JMX Remote monitoring Linux tomcat feature implementation

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.