JVM监控——jconsole、

jconsole

1、修改catalina.sh

  tomcat的bin目录:vim catalina.sh

  添加:

  

# OS specific support.  $var _must_ be set to either true or false.

JAVA_OPTS="-Djava.rmi.server.hostname=你的主机IP -Dcom.sun.management.jmxremote.port=指定端口 -Dcom.sun.management.jmxremote.rmi.port=指定端口 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

  

2、启动${JAVA_HOME}/bin/jconsole.exe

  填写远程地址端口并连接(忽略https继续连接):

  

原文地址:https://www.cnblogs.com/speily/p/11304381.html