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继续连接):

  

 

posted @ 2019-08-05 17:33  呵呵哒。。。  阅读(180)  评论(0编辑  收藏  举报