jconsole监听linux上的springboot工程
启动参数
nohup java -Xms128M -Xmx256M -Djava.rmi.server.hostname=47.116.143.16 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18899 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar lunch-0.0.1-SNAPSHOT.jar
说明
-Djava.rmi.server.hostname为java程序运行所在的机器ip
-Dcom.sun.management.jmxremote.port为端口,自定义,保证是未使用的端口即可。jconsole通过这个端口来连接。
-Dcom.sun.management.jmxremote.authenticate=false表示在jconsole连接时可以不用输入账号和密码
启动jconsole


浙公网安备 33010602011771号