jmx为啥开了额外两个随机端口?

通常配置的是registry port:

-Dcom.sun.management.jmxremote.port=9123 

 

jdk7之后rmi server port也可以配置了,可以配置成同一个。

-Dcom.sun.management.jmxremote.rmi.port=9123

 

但是还有一个随机端口没解决。。。还是这哥们执着,最后开了bug
http://stackoverflow.com/questions/20884353/why-Java-opens-3-ports-when-jmx-is-configured



相关链接

https://issues.apache.org/bugzilla/show_bug.cgi?id=55931

http://stackoverflow.com/questions/20699068/tomcat7-with-enabled-jmx-opens-2-additional-random-listening-ports
http://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html#JMX_Remote_Lifecycle_Listener_-_org.apache.catalina.mbeans.JmxRemoteLifecycleListener

 

 

http://stackoverflow.com/questions/20884353/why-Java-opens-3-ports-when-jmx-is-configured

http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8035404

/usr/bin/java -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.local.only=true -Djava.rmi.server.useLocalHostname=true -Djava.rmi.server.useCodebaseOnly=true -Dcom.sun.management.jmxremote.port=9123 -Dcom.sun.management.jmxremote.rmi.port=9123

猜你喜欢

转载自m635674608.iteye.com/blog/2357289
今日推荐