4 Replies Latest reply on Sep 5, 2011 4:00 AM by hkrunnerhk

    Need help to make JBoss Profiler (2.0 Beta5) work

      I just installed JBoss Profiler 2.0 Beta5 on my server which is running

      jboss-4.2.3.GA on Linux.


      I followed the procedures from the bundled UserGuide to set up and configure

      the environment. And after I ran the following commands to get a snapshot:


      java -Xmx512m -Djboss-profiler-client.properties=jboss-profiler-client.properties \
      -jar jboss-profiler-client.jar snapshot reports

      java -Xmx512m -Djboss-profiler-client.properties=jboss-profiler-client.properties \
      -jar jboss-profiler-client.jar getSnapshot 1 reports


      There is no information collected for those classes that I specified in



      Does anyone know how to fix this problem?

      Thanks in advance.






        • 1. Re: Need help to make JBoss Profiler (2.0 Beta5) work

          The jboss-profiler-client.jar doesn't need the -Djboss-profiler.properties argument.




          java -jar jboss-profiler.jar startProfiler
          // Run your application
          java -jar jboss-profiler.jar stopProfiler
          java -jar jboss-profiler.jar getSnapshot 1



          • 2. Re: Need help to make JBoss Profiler (2.0 Beta5) work

            I am also not getting all the results I am expecting from the profiler.


            I am running Mobicents Sip Servlets on JBoss 5.1.0 and I am trying to use JBoss profiler 2.0 Beta5.


            The results page lists all my classes, but only shows samples for a couple of them. Everything else has 0.00ms including the servlet class (the entry point)


            I need to pass a different host to connect to (ip address, not localhost) so I'm using jboss-profiler-client.properties for that

            • 3. Re: Need help to make JBoss Profiler (2.0 Beta5) work

              I'm seeing the same thing with JBoss 4.2.3GA and JBoss profiler 2.0 beta5.  0ms for all my classes.

              • 4. Re: Need help to make JBoss Profiler (2.0 Beta5) work

                I am also using jboss-5.1.0.GA with jboss-profiler-2.0.0.Beta5 in windows environment.


                1) Add the below in run.conf.bat

                set JAVA_OPTS=%JAVA_OPTS% -javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties


                2) Copy the files below to corresponding folders

                jboss-profiler.jar, jboss-profiler.properties, jboss-profiler-plugins.jar to jboss_directory/bin

                jboss-profiler.sar to jboss_directory/server/default/deploy


                3) Restart Boot application server


                4) Try to capture the statistics by

                java -jar jboss-profiler-client.jar startProfiler

                < then run my application>

                java -jar jboss-profiler-client.jar stopProfiler

                java -jar jboss-profiler-client.jar getSnapshot 1


                A folder has been generated under the jboss-profiler directory. However, all the result shown in the html got Total Time and Wait Time of 0.00ms.


                Is there anything I have missed?