Tomcat configures JMX remote connection

configure tomcat

Create the setenv.sh file under apache-tomcat-7.0.52/bin and add the following content. Note that the script below is one line.

JAVA_OPTS="-Dcom.sun.management.jmxremote
 -Dcom.sun.management.jmxremote.port=9999
 -Dcom.sun.management.jmxremote.authenticate=false
 -Dcom.sun.management.jmxremote.ssl=false
 -Djava.net.preferIPv4Stack=true
 -Djava.rmi.server.hostname=192.168.56.100"

Description: -Djava.rmi.server.hostname configures the IP address of the machine where tomcat is located.
insert image description here

Connect using VisualVM

insert image description here
insert image description here
insert image description here

connect using jconsole

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/fengsheng5210/article/details/123652868