3 Replies Latest reply on Nov 16, 2005 4:52 PM by mohank98

    jvmstat with JBoss



      I try to use jvmstat

      invalid argument count
      Version 3.0_b04 10/12/04 - Requires J2SE/Hotspot 1.5.0 or later

      with my remote JBoss installation under Linux. The parameter is set to:
      JAVA_OPTS="$JAVA_OPTS -XX:+UsePerfData"

      and we use this Java:

      [12:25:35 ofadevel@ofatest1:ofadevel]$ /usr/oma/java/bin/java -version
      java version "1.4.2_07"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
      Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)

      I get this error message:

      E:\data\rafcio\bin\jvmstat\bat>visualgc.cmd 31159@
      RMI Registry not available at
      Connection refused to host:; nested exception is:
      java.net.ConnectException: Connection refused: connect

      I tryied to start JBoss 3.2.5 unter 1088 instead of 1099. A local installation unter Windows XP works fine.

      What can I do? has anybody use jvmstat with remote JBoss?

      Best Regards,

        • 1. Re: jvmstat with JBoss

          I forgot to start ./rmiregistry & But after start I get this error:

          E:\data\rafcio\bin\jvmstat\bat>visualgc.cmd 947@
          RMI Server JStatRemoteHost not available


          • 2. Re: jvmstat with JBoss

            From what you've written, it appears that you are trying to run this with a 1.4 JVM, and yet the error message is reporting that you need hotspot 1.5.

            I think you'll need a 1.5 JVM for this (i.e. you need to install J2SE 5.0).

            • 3. Re: jvmstat with JBoss

              I have had success with it by running visualgc local to the server. Visualgc should be run with JDK1.5. Jboss need not run JDK1.5. set your environment variable..
              JVMSTAT_JAVA_HOME = C:\Progra~1\Java\jdk1.5.0_05
              PATH to include :\Progra~1\Java\jdk1.5.0_05\bin;c:\jvmstat\bin

              Hope that helps..