jconsole+idea监控

1、idea启动配置

 添加以下内容

-Djava.rmi.server.hostname=127.0.0.1
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=11911
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

2、win+R 打开系统cmd命令窗口

输入:jconsole

选择远程连接输入第一步中配置的 ip:port 点击连接即可

ps:需要安装JDK、监控的项目先启动

猜你喜欢

转载自www.cnblogs.com/lxn0216/p/11842449.html