0 Replies Latest reply on Sep 19, 2014 9:35 AM by Neetha Lokanath

    unable to configure jboss profiler.

    Neetha Lokanath Newbie

      HI all,

       

      I am trying to configure jboss profiler (1.0 CR4)  on jboss 4.2.3 AS. I followed the  below steps.

       

      1. copy jboss-profiler-noAOP.sar to the JBoss AS deploy directory

      2) put jbossInspector.dll in your PATH (Windows)

      or libjbossInspector.so in your LD_LIBRARY_PATH (Linux/Unix)

      3) copy jboss-profiler.war to the JBoss AS deploy directory

      Configuration:

      1) Add something like this to the JBoss JVM options: -XrunjbossInspector:/tmp/profiler,include=com.unisys,ignore=*,memory=false

      Make sure the output directory (/tmp/profiler in this example) exists.

      Usage:

      1) In the jmx-console, use the jboss.profiler Native-profiler mbean to activate profiling

      2) Exercise your application

      3) In the jmx-console, use the jboss.profiler Native-profiler mbean to stop profiling (if you forget to do this, you will

      probably get a java.io.EOFException when you try to use the analyzer war)

      4) Analyze results using the JBoss Profiler web app at localhost:8080/jboss-profiler

      Example analysis:

      a. Click on 'Runtime Profiler'

      b. Enter the output directory, for example, /tmp/profiler

      c. Check 'Stack on methods', uncheck other options and submit

      d. Click 'click here'

      e. Click the 'All Methods' link to get a view of time allocation among individual methods

       

       

      But i am stuck at step 2 itself.

       

      I am unable to load the jbossInspector.dll probably. I have copied jbossInspector.dll to C:\windows\system32 folder. To check the installation of jbossInspector.dll i tried the below

       

      C:\Users\Administrator>java -XrunjbossInspector:\tmp Foo

      Error occurred during initialization of VM

      Could not find agent library jbossInspector on the library path, with error: %1 is not a valid Win32 application

       

      And when i try to invoke the activate mbean, i get the below error.

       

      java.lang.NoClassDefFoundError: Could not initialize class org.jboss.profiler.threadcheck.StartupProfilerCheck

      org.jboss.profiler.NativeProfilerService.activate(NativeProfilerService.java:44)

      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      java.lang.reflect.Method.invoke(Method.java:597)

      org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

      org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

      org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)

      org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)

      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:278)

      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)

      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

       

       

      CAn anybody have an idea on this.