1、啓動程序 添加遠程監控的jmx參數
nohup java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar /home/stm/jar/stm-control.jar > /home/stm/jar/stm-control.log &
2、打開jconsole
點擊連接 即可
2、jvisualvm 連接遠程jvm 同上開啓jmx