在服务器端配置文件添加参数
设置jconsole监控端口号
-Dcom.sun.management.jmxremote.port=17777
内网代码调试一般不需要用户和口令验证,下面量参数设为false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
设置本主机名,即服务器ip
-Djava.rmi.server.hostname=172.23.21.43
启动项目后,win+R打开命令行,输入jconsole,输入ip:port即可连接。


如果第一次连接失败,点击Insecure重连就好了


本文介绍了JConsole远程监控的配置与连接方法。在服务器端配置文件添加参数,设置监控端口号、关闭用户和口令验证与SSL、设置主机名。启动项目后,通过命令行打开JConsole,输入IP和端口即可连接,若首次失败可点击Insecure重连。
2462

被折叠的 条评论
为什么被折叠?



