使用Zenoss對JMX的監控

來源:互聯網
上載者:User

背景

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.XXset 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"

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.