标签:zenoss java connection refused t
Zenoss 4.x 版本中提供了对JMX的监控支持,通过对下面网页的访问可以了解更多的信息:
http://wiki.zenoss.org/ZenPack:Java_2_Platform_Standard_Edition_%28J2E%29
但是按照文档中的配置,当试图在windows下监控Tomcat时出现了下面的异常:
Error Connecting to Server ; Failed to connect to service:jmx:rmi:///jndi/rmi://XX.XX.XX.XX 12345/jmxrmi [Nested Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: /XX.XX.XX.XX; nested exception is: java.net.ConnectException: Connection refused]]
将startup.bat里添加的配置
set JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.port="12345" set JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.authenticate="false" set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl="false"扩展成:
set JAVA_OPTS=%JAVA_OPTS%-Djava.rmi.server.hostname=XX.XX.XX.XX set JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.port="12345" set JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.authenticate="false" set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl="false"
标签:zenoss java connection refused t
原文地址:http://blog.csdn.net/eric_sunah/article/details/24622973