Tomcat开启JMX功能,使jdk自带的JVisvualVM工具连接JVM,轻松进行性能分析,自己做个备忘。目录1.Tomcat开启JMX功能2.JVisvualVM连接JMX1.Tomcat开启JMX功能在文件/etc/tomcat/tomcat.conf最后,新增如下代码CATALINA_OPTS="-Dcom.sun.management.jmxremote-Djava.rmi.server.hostname=192.168.0.2-Dcom.sun.management.jmxremote.port=7091-Dcom.