远程

打开的 %tomcat_home%/bin/catalina.sh

配置 JAVA_OPTS,添加代码

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8091
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

命令行下输入 hotstname -i,查看本机的地址是远程访问的地址,比如:192.168.74.138。

本地

打开 jconsole,新建连接,地址输入:192.168.74.138:8091,就 OK 了。

图片


Cool3Rocks

黑发不知勤学早,白首方悔读书迟