使用jconsole监控springboot内置tomcat

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

使用jconsole监控springboot内置tomcat

点击连接 即可

2、jvisualvm 连接远程jvm 同上开启jmx

使用jconsole监控springboot内置tomcat

 

使用jconsole监控springboot内置tomcat