jconsole远程连接jetty
1、jetty配置
start.ini中加入如下配置
--exec
OPTIONS=Server,jsp,jmx,resources,websocket,ext,plus,annotations #jmx必须有
-Djava.rmi.server.hostname=10.128.225.169 #替换服务器ip
-Dcom.sun.management.jmxremote.port=8900 #jmx端口
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
重启jetty
2、jconsole连接
本地启动jconsole: