Profiling a webapp on JBoss 7 using JVisualVM

I would like myappapp profile with JVisualVM on JBoss 7.

So, I run this tool and open the JVM running JBoss.

I click "Profiler", "Settings" and in "Processor Settings", I added:

  • "Start profiling from classes:": com.mycompany.myapp.action. **

  • New runnables profile

  • "Classes only profiles:": com.mycompany. *

And when I click on “CPU” (for the CPU profile), in JBoss I have:

Profiler Agent: 250 classes cached.
Profiler Agent: Redefining 100 classes at idx 0, out of total 188 
Profiler Agent: Redefining 88 classes at idx 100, out of total 188 
10:26:05,720 ERROR [stderr] (server-timer1) Exception in thread "server-timer1" java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
10:26:05,721 ERROR [stderr] (server-timer1)     at org.jboss.sun.net.httpserver.ServerImpl$ServerTimerTask1.run(ServerImpl.java:895)
10:26:05,722 ERROR [stderr] (server-timer1)     at java.util.TimerThread.mainLoop(Timer.java:534)
10:26:05,722 ERROR [stderr] (server-timer1)     at java.util.TimerThread.run(Timer.java:484)

According to googling, it seems to me that I add ajfluid-server.jar JBoss class to the path, but when I do this with Eclipse, the jar disappears before I restart the server ...

VisualVM , jar- jB, JBoss AS.

standalone.xml, jar JBoss 7 class?

!

+5
1

-Djboss.modules.system.pkgs=org.netbeans.lib.profiler.server JVM, , . https://issues.jboss.org/browse/JBAS-8927.

+8

All Articles