2 Replies Latest reply on Jul 2, 2013 2:09 PM by Thiago Nascimento

    JBoss Monitoring - MBean and JMX

    mreitz Newbie

      Hello everyone.

       

      I´m trying to monitoring JBoss AS 4.2.3 with Zabbix, however i´m having issues with some metrics.

       

      I set this settings on run.bat

       

      set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver

      set JAVA_OPTS=%JAVA_OPTS% -Djavax.management.builder.initial=org.jboss.system  .server.jmx.MBeanServerBuilderImpl

      set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote

      set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=12345

      set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false

      set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false

       

      When i start the JBoss, i can get the metrics from jboss.system and jboss.web, but can´t get from java.lang and jboss.jca.

       

      So, i find out that if i go to JMX-Console(http://localhost:8080/jmx-console/) and press F5(refresh the page), after few seconds all the metrics from java.lang and jboss.jca starts to work like magic.

       

      I just don´t want to refresh the JMX-Console for all the servers i´m monitoring. It´s physically impossible

       

      Anyone facing the same problem or knows a workaround?

       

      Thanks in advance!!!