9 Replies Latest reply on Sep 17, 2008 9:30 AM by cbynum

    JBossAS JVM not showing in administration console

    cbynum

      I'm having an issue where I am not able to see my JVM within my JBossAS instances. I saw suggestions in the FAQ section of the documentation, but I am still unable to view my JVM. I am able to see the JVM within my RHQ (JON) Server in the administration cosole, so I used the run.bat and run.conf from the JON server installation for my other JBossAS instance in an attempt to see if those were the problem areas, but I had no success.

      I'm running locally on Windows XP with a Postgres DB. If anyone has ideas on how to get these embedded JVM's showing, please let me know.

      From the FAQ section of the documentation:

      When monitoring a JBAS instance, I'm not seeing any JVM resources beneath it?

      The answer is likely to be that you need to run you JBAS instance with the jboss.platform.mbeanserver system property set. For example in UNIX-type environments you can specify the following in the .\bin\run.conf file:

      JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"

      Note: With JON 2.0.0 and 2.0.1 if the system property com.sun.management.jmxremote is also specified this will prevent the JVM resources being discovered by JON. Removing this property will allow those resources to be found. In JON 2.0.1 this restriction is lifted and even if the system property com.sun.management.jmxremote is specified JVM resources should still be added to the JON inventory.


        • 1. Re: JBossAS JVM not showing in administration console
          ips

          Hi,

          In order to expose JVM metrics, you must be running the JBossAS instance on Java 1.5 or higher. I'm guessing you're running on Java 1.4.

          -Ian

          • 2. Re: JBossAS JVM not showing in administration console
            cmorgan

            cbynum,

            The supported eval ended yesterday. Could this be related to your license expiring? If not, then you may need to run this one by support as well by entering an official ticket. This problem would need to be re-created for resolution from the description.

            • 3. Re: JBossAS JVM not showing in administration console
              cbynum

              I'm running on 1.6.

              I will look into opening a ticket.

              • 4. Re: JBossAS JVM not showing in administration console
                ccrouch

                Is it the Sun JVM? Do you see the platform mbeans if you use the jmx-console? Are you using JON 2.0.0, I know that had problems with JDK6.

                • 5. Re: JBossAS JVM not showing in administration console
                  cbynum

                  It is the Sun JVM. I am running JON 2.0.1. I'm in the jmx-console now and I don't see anything that refers to the platform. Is there a particular MBean that I should be looking for?

                  Could there be a place in the JON console where it is pointing to the wrong JDK or JRE?

                  • 6. Re: JBossAS JVM not showing in administration console
                    ccrouch

                     

                    "cbynum" wrote:
                    I'm in the jmx-console now and I don't see anything that refers to the platform. Is there a particular MBean that I should be looking for?


                    That sounds like your problem. There should be mbeans in the java.lang domain e.g. java.lang:name=Code Cache,type=MemoryPool

                    Cheers

                    • 7. Re: JBossAS JVM not showing in administration console
                      ips

                      What version of the app server are you running? In JBoss EAP, there may be a run.conf file in the config directory (e.g. boss-eap-4.3.0.GA_CP02\jboss-as\server\production\run.conf) that overrides the one in the main bin directory (e.g. jboss-eap-4.3.0.GA_CP02\jboss-as\bin\run.conf). When you start your AS instance, it should print the value of JAVA, JAVA_OPTS, etc., e.g.:

                      ===============================================================================
                      JBoss Bootstrap Environment
                      JBOSS_HOME: C:\opt\jboss-eap-4.3.0.GA_CP02\jboss-as
                      JAVA: C:\opt\jdk-1.6.0_07\bin\java
                      JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n -Dprogram.name=run.bat -Djboss.platform.mbeanserver -Djbmancon.debug=true -server -Xms200M -Xmx400M -XX:PermSize=200M -XX:MaxPermSize=400M -Dsun.rmi.dgc.cli
                      ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
                      CLASSPATH: C:\opt\jdk-1.6.0_07\lib\tools.jar;C:\opt\jboss-eap-4.3.0.GA_CP02\jboss-as\bin\run.jar
                      ===============================================================================

                      Please post this output, so I can make sure the values of the environment variables look ok.

                      Thanks,
                      Ian

                      • 8. Re: JBossAS JVM not showing in administration console
                        cbynum

                        ===============================================================================

                        JBoss Bootstrap Environment

                        JBOSS_HOME: C:\JBossAS-4.2.2GA

                        JAVA: C:\Java\jdk1.6.0_10\bin\java

                        JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                        CLASSPATH: C:\Java\jdk1.6.0_10\lib\tools.jar;C:\JBossAS-4.2.2GA\bin\run.jar

                        ===============================================================================

                        • 9. Re: JBossAS JVM not showing in administration console
                          cbynum

                          After looking at that output, I see now that I was not running the server with my updated run.bat and run.conf

                          When I added the updated I get, the output below and my JVM is now showing. Thanks for the assistance.

                          ===============================================================================

                          JBoss Bootstrap Environment

                          JBOSS_HOME: C:\JBossAS-4.2.2GA

                          JAVA: C:\Java\jdk1.6.0_10\bin\java

                          JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.platform.mbeanserver

                          CLASSPATH: C:\Java\jdk1.6.0_10\lib\tools.jar;C:\JBossAS-4.2.2GA\bin\run.jar

                          ===============================================================================