码迷,mamicode.com
首页 > 其他好文 > 详细

jvisualvm jmx 远程连接问题

时间:2016-10-13 14:32:04      阅读:415      评论:0      收藏:0      [点我收藏+]

标签:

In addition to listening to the port you specified (1100) the JMX server also listens to a randomly chosen (ephemeral) port.
Check, e.g. with lsof -i|grep java if you are on linux/osx, which ports the java process listens to and make sure your firewall is open for the ephemeral port as well.
除了JMX server指定的监听端口号外,JMXserver还会监听一到两个随机端口号,
可以通过命令:lsof -i|grep java |grep <pid> 来查看当前java进程需要监听的随机端口号,


-Djava.rmi.server.hostname=192.168.0.1
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=9090
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

jvisualvm jmx 远程连接问题

标签:

原文地址:http://www.cnblogs.com/webundle/p/5955906.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!