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