Tomcat开启远程监控Jconsole配置

1.setenv.sh

JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=XXXX -Dcom.sun.management.jmxremote.password.file=$CATALINA_BASE/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=$CATALINA_BASE/conf/jmxremote.access -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999"

cp jmxremote.password jmxremote.access /tomcat/conf

2.Tomcat开启远程监控Jconsole配置

Tomcat开启远程监控Jconsole配置