visualVM远程监控jetty

1.打开本体bin/visualvm

2.添加远程主机

3.启动应用,使用以下方式

 java -Djava.rmi.server.hostname=远程IP地址 -Dcom.sun.management.jmxremote.port=34099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar start.jar

bin/jetty.sh start  -Djava.rmi.server.hostname=远程IP地址 -Dcom.sun.management.jmxremote.port=34099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false 

4.添加JMX

5.确定

原文地址:https://www.cnblogs.com/nunuAction/p/10750806.html