6 Replies Latest reply on Jun 14, 2007 9:51 AM by grdzeli_kaci

    JBoss Profiler On Solaris

      hi all,
      i am newbie on jboss profiler,
      i tried to install jboss profiler and done it step by step,
      1.download jboss profiler 1.0.CR4,
      2. first step "1. Build using ant. The built files will appear under the build/ directory" does not work it throws an error :

      bash-3.00$ $ANT_HOME/bin/ant compile
      Buildfile: build.xml
      init:
      compile:
       [javac] Compiling 5 source files to /export/home/jboss/jboss-profiler-1.0.CR4/jvmti-src/output/classes
      BUILD FAILED
      /export/home/jboss/jboss-profiler-1.0.CR4/jvmti-src/build.xml:23: /export/home/jboss/jboss-profiler-1.0.CR4/build/jar not found.
      
      Total time: 0 seconds
      

      what i did incorrect ???

      after this i tried to install without build,
      look into the read me file, there is installation steo :
      "1.Once built, put jbossInspector.dll in your PATH (if you are using Windows)
      or libjbossInspector.so in your LD_LIBRARY_PATH (if you are using Linux/Unix.)"
      i have solaris os and export ld_library_path

      LD_LIBRARY_PATH=/export/home/jboss/jboss-profiler-1.0.CR4/jvmpi-src/solaris/bin
      export LD_LIBRARY_PATH
      

      also i put it into path
      PATH=$JAVA_HOME:$PATH:/export/home/jboss/jboss-profiler-1.0.CR4/jvmpi-src/solaris/bin
      export PATH
      


      after all i changed my run configuration file

      JAVA_OPTS="-server -Xmx3168m -Xms2144m -Xmn1g -Xss256k -d64 -XX:PermSize=128m -XX:MaxPermSize=256m
       -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
       -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
       -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts
       -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintTenuringDistribution
       -Xloggc:/export/home/jboss/jboss-4.0.4.GA/server/all/log/gc.log
       -XrunjbossInspector:/export/home/jboss/jboss-profiler-1.0.CR4,include=com.magti,start=org.jboss"
      

      but i got an error like this:

      Error occurred during initialization of VM
      Could not find agent library on the library path or in the local directory: jbossInspector
      


      what i did incorrect ?

      regards,
      Paata.


        • 1. Re: JBoss Profiler On Solaris

          I am not sure if this is strictly up to date, but did you follow the steps outlined in this Wiki note for Solaris ?

          http://wiki.jboss.org/wiki/Wiki.jsp?page=SolAris


          • 2. Re: JBoss Profiler On Solaris
            clebert.suconic

            Let me know if the Solaris instructions aren't helpful.

            also... in your parameters:

            -XrunjbossInspector:/export/home/jboss/jboss-profiler-1.0.CR4,include=com.magti,start=org.jboss


            the include is saying.. the only classes you want to analyze are com.magti... you don't want to look at anything else.

            The start is saying... on a thread... only start capturing when you have a class of org.jboss on the stack trace.

            I would try the plain parameter first, like:

            -XrunjbossInspector:/export/home/jboss/jboss-profiler-1.0.CR4


            And filter out stuff later after you got your first report.

            • 3. Re: JBoss Profiler On Solaris

              there is 2 problems, it does not weork with -d64 option and garbage collection options ...
              is there any ideas ?

              • 4. Re: JBoss Profiler On Solaris
                clebert.suconic

                -d64:

                It's required to recompile the library using 64bits options


                The GarbageCollection options:

                JVMPI doesn't support MultiThread Garbage Collections.
                We need to finish the runtime on the JVMTI module. I have to either finish or some other C++ programmer contributing it.

                • 5. Re: JBoss Profiler On Solaris

                   

                  "clebert.suconic@jboss.com" wrote:
                  -d64:

                  It's required to recompile the library using 64bits options


                  The GarbageCollection options:

                  JVMPI doesn't support MultiThread Garbage Collections.
                  We need to finish the runtime on the JVMTI module. I have to either finish or some other C++ programmer contributing it.


                  when i tried to use 64 bity option i got this error :
                  ld: fatal: file adler32.o: wrong ELF class: ELFCLASS32
                  ld: fatal: File processing errors. No output written to libjbossInspector.so
                  collect2: ld returned 1 exit status


                  • 6. Re: JBoss Profiler On Solaris

                    i did it thank you very much, i have incorrect library into my path