5 Replies Latest reply on Jan 15, 2010 3:58 PM by obedmhg

    How to add a JBoss AS JVM to a server

    obedmhg

      Hi All,

       

      I can not add a JBoss AS JVM on one of my servers to monitor JMX, I don't know how, I already read the documentation about how to add JMX server but I want to know how to make a JBoss AS JVM as chid of a server that I already have as resources.

       

      I have configured my jboss server to run with the following options:

       

      export JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
      export JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
      export JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=6543"
      export JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
      export JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"

       

      Please help me with this

       

       

      Thanks,

        • 1. Re: How to add a JBoss AS JVM to a server
          ips
          Can you try with only:  export JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"  I think that's all you need.
          • 2. Re: How to add a JBoss AS JVM to a server
            obedmhg

            Hi Ian,

             

            I changed to only use export JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver" but is the same story I am not able to add it inside one of my jboss servers, maybe I am missing something.

             

            Once I added this I went to add Manually server and I select JMX server but wen I added it Is added as Java VM on my platform instead of my jboss instance that is configured.

             

            Do you know where I can add the Jboss AS JVM? or how? becuase neither a Discovery worked

             

             

            Thanks for your help Ian.

            • 3. Re: How to add a JBoss AS JVM to a server
              jayshaughnessy

              If I understand correctly, your AS was already in inventory.  You then shut it down and added the properties to expose the platform mbeans. Then you restarted the AS server.

               

              If, during this whole time your RHQ Agent was running it's possible that you need to force an agent discovery for it to automatically discover the new resources.  Try restarting the agent or executing the agent prompt command 'discovery -f'..  Or, uninventory the entire AS Server resource and reimport it after it has been rediscovered.

              • 4. Re: How to add a JBoss AS JVM to a server
                ips
                Just to add a bit more, service discovery scans, which discover services and non-top-level servers (such as the JBoss AS JVM), only run automatically once every 24 hours, so when you know you have something new to autodiscover and don't want to wait up to 24 hours, you can manually kick off a full scan (i.e. a server scan followed by a service scan) using the Agent prompt command "discovery -f" or the Discover operation on the platform Resource.
                • 5. Re: How to add a JBoss AS JVM to a server
                  obedmhg

                  Thanks Ian and Jay,

                   

                  I fixed the problem thanks to you

                  What I did was:

                   

                  Restart my Jboss instance

                  Restart the rhq Agent

                  And run a Discovery

                   

                  Just like you said

                   

                  Thank you very much for your time and your knowledge.