1. 程式人生 > >jconsole遠端連線tomcat的jvm

jconsole遠端連線tomcat的jvm

1、在tomcat目錄下修改cataline.sh檔案,增加jvm引數配置

JAVA_OPTS="-Dcom.sun.management.jmxremote  -Djava.rmi.server.hostname=192.168.0.237 -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

2、重啟tomcat ,在客戶端輸入ip和商品即可