我正在尝试使用Jconsole监控远程jvm。jdk1.7.0_75在远程机器上的jre/lib/management/management.properties文件中安装并配置了以下参数。
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8002
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname=x.x.x.x获取连接失败:连接被拒绝。已检查端口号8002是否空闲并禁用防火墙,请提供解决方案。
发布于 2015-08-19 19:43:36
您正在设置正确的属性,但是在这里混合了两种不同的方法。要在您的应用程序上启用JMX,您需要执行以下操作:
com.sun.management.jmxremote.port=8002https://stackoverflow.com/questions/32093543
复制相似问题