7 Replies Latest reply on Feb 25, 2013 10:36 AM by lkrejci

    Managing JBoss 4.x & 5.1.0

    matthias_b

      Hello,

      I'm  using RHQ 4.4.0.

      All components run under Linux SLES 11.
      I installed a server and multiple agents on different machines.

      The individual JBoss instances I can see in RHQ.

      But the JBoss Instances didn't send any data (metrics) to the RHQ server.

      The online documentation seems to be incomplete.

      (https://docs.jboss.org/author/display/RHQ45/JBoss+AS+3.x-4.x+Product+Configuration)

      Who can help?

       

       

      Thanks

       

      Mat

        • 1. Re: Managing JBoss 4.x & 5.1.0
          matthias_b

          Sorry, now it works !

           

          I don't need any help.

          • 2. Re: Managing JBoss 4.x & 5.1.0
            matthias_b

            Okay, next question:

             

             

            1.) A question about alerts:

                I'm finding a metric for the JVM heap size. --> Free Memory.

               When I define an alert for them, it monitors ALL instances on the machine.

               What I have to do, to monitor only ONE instance on the machine ?

            • 3. Re: Managing JBoss 4.x & 5.1.0
              lkrejci

              How did you define the alert definition?

               

              If you went to Administration -> Alert Definition Templates and added a definition for Free Memory, then yes, the alert definition would be defined on every JVM on the machine.

               

              But you can also go to a concrete JVM resource, like a JVM under AS4 server resource and define an alert definition just for that single JVM.

               

              In the latter case the alert should not fire for any other JVM than the one you defined it for.

              • 4. Re: Managing JBoss 4.x & 5.1.0
                matthias_b

                I don't know, who I can do this ?

                 

                Please describe it step-by-step.

                 

                I don't find a concrete JVM resource under AS4 server resource.

                • 5. Re: Managing JBoss 4.x & 5.1.0
                  lkrejci

                  Your problem might be that the AS4 platform might not even be exposing the JVM metrics that RHQ needs. When you connect to your AS4 instance (using the same creds as RHQ is configured to use) using some JMX console like jconsole, do you see MBeans under java.lang?

                  • 6. Re: Managing JBoss 4.x & 5.1.0
                    matthias_b

                    Under the jmx-console I can see the MBean: org.jboss.system.server.ServerInfo.FreeMemory.

                    • 7. Re: Managing JBoss 4.x & 5.1.0
                      lkrejci

                      For example:

                       

                      $JBOSS_HOME/bin/twiddle.sh -s jnp://<you-host>:<your-port> -u <user> -p <password> query 'java.lang:*'

                       

                      should return some results.

                       

                      If it is not the case, you can try start your AS4 server with "-Djboss.platform.mbeanserver" system property or google for the way how to start JBoss AS4 with platform mbeans exposed (I remember there have been some issues with it in older versions of AS4. I tried it with JBoss EAP 4.3.0 CP08 and the jboss.platform.mbeanserver property was enough).