jvm性能监控(4)–JVM的监控工具Jconsole

下面主要说一下怎么JConsole远程连接springboot 项目

java 
-Djava.rmi.server.hostname=192.131.149.42
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-jar adott-api-adott1.0.jar  --spring.profiles.active=dev  >nohup 2>&1 &
 

 输入启动jar 配置 ip和端口 ,用户名和密码不用输入

原文地址:https://www.cnblogs.com/yiyepiaolingruqiu/p/11675828.html