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

    jvmstat with JBoss

    rafcio

      Hi,

      I try to use jvmstat

      E:\data\rafcio\bin\jvmstat\bat>visualgc.cmd
      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@10.11.0.29
      RMI Registry not available at 10.11.0.29:1099
      Connection refused to host: 10.11.0.29; 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,
      Rafal

        • 1. Re: jvmstat with JBoss
          rafcio

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

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


          Regards,
          Rafal

          • 2. Re: jvmstat with JBoss
            nick.hynes

            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
              mohank98

              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
              and
              PATH to include :\Progra~1\Java\jdk1.5.0_05\bin;c:\jvmstat\bin

              Hope that helps..