5 Replies Latest reply on Apr 27, 2009 7:16 PM by mazz

    Monitoring Java PermGen and Heap...

    cinaed

      Hi,

      we want to get metrics for JBossAS JRE's PermGen and Heap. The only metrics we've seen is for Java Free, Max and Total memory. Is it possible to get more detailed metrics for the JBossAS JRE out-of-the-box?

      Thanks in advance,
      -Kenta

        • 1. Re: Monitoring Java PermGen and Heap...
          ips

          Yes, you need to edit your JBoss AS instance's run.sh/run.bat and add the following option to JAVA_OPTS:

          -Djboss.platform.mbeanserver


          Then restart the AS instance.

          Then run the following command from the Jopr Agent prompt:

          discovery -f


          then go to the JBoss AS Resource in the Jopr GUI, and you should see a new child Resource named "JBoss AS JVM". That resource should have a whole bunch of heap/permgen metrics as well as other JVM-related metrics and operations.


          • 2. Re: Monitoring Java PermGen and Heap...
            cinaed

            Hi,

            thanks!

            Another question related to the agent discovery -f.
            How do you execute the "discovery -f" when you run the agent with init.d, i.e. when the agent is already up and running without any prompt?

            -Kenta

            • 3. Re: Monitoring Java PermGen and Heap...
              ghinkle

              You can run the discovery request directly from the Jopr server UI. Just browse to the platform resource for that agent and visit the operations tab. You can execute the Manual Autodiscovery operation with the Detailed Discovery option on.

              Also, you can group your platforms into compatible groups and give yourself the ability to run discoveries on every agent in your inventory very easily through a group operation.

              -Greg

              • 4. Re: Monitoring Java PermGen and Heap...
                cinaed


                Ok thanks.
                The agent compatible group seems nice.

                -Kenta

                • 5. Re: Monitoring Java PermGen and Heap...
                  mazz

                  FYI: almost all of the prompt commands can be executed directly from the Agent Operations tab via the "Execute Prompt Command" operation.