JConsole 连接linux远程进程

java增加启动参数

JAVA_CONSOLE_OPTS="$JAVA_CONSOLE_OPTS -Djava.rmi.server.hostname=192.168.3.108" //ip
JAVA_CONSOLE_OPTS="$JAVA_CONSOLE_OPTS -Dcom.sun.management.jmxremote"
JAVA_CONSOLE_OPTS="$JAVA_CONSOLE_OPTS -Dcom.sun.management.jmxremote.port=60001"    //端口
JAVA_CONSOLE_OPTS="$JAVA_CONSOLE_OPTS -Dcom.sun.management.jmxremote.authenticate=false"   //不用认证
JAVA_CONSOLE_OPTS="$JAVA_CONSOLE_OPTS -Dcom.sun.management.jmxremote.ssl=false"

点击连接,成功

猜你喜欢

转载自www.cnblogs.com/fengyanqing/p/12207067.html