1. 服务端配置
java启动命令减少以下参数即可:
-Dcom.sun.management.jmxremote \-Dcom.sun.management.jmxremote.local.only=false \-Djava.rmi.server.hostname=test.xxx.com \-Dcom.sun.management.jmxremote.port=18097 \-Dcom.sun.management.jmxremote.rmi.port=18098 \-Dcom.sun.management.jmxremote.ssl=false \-Dcom.sun.management.jmxremote.authenticate=false \-Xloggc:logs/gc.log \
参数阐明:
不开启SSL-Dcom.sun.management.jmxremote.ssl=false
不开启明码验证-Dcom.sun.management.jmxremote.authenticate=false
2. 客户端配置
关上Java VisualVM
配置近程连贯连贯
留神项:
主机填-Djava.rmi.server.hostname
配置的主机
端口填-Dcom.sun.management.jmxremote.port
配置的端口
配置-Dcom.sun.management.jmxremote.rmi.port
不能省略