My Setup
———————
I have been trying to setup profiler for my Maven based application in WAR format. I was able to successfully setup the JBoss deployment. MyEclipse starts JBoss 7 in debug mode. Further, I tried to enable the profiler on it. After adding jfluid-server.jar from myeclipse installation into my WAR file and also in JBoss classpath, the JBoss starts without any error and JVisualVM comes up nicely. So far so good.
Problem
———————-
Now when I try to profile CPU for my application, I expect the application classes to be profiled. The profiler shows many things getting profiled including EHCache threads but it doesnt profile my application. I verified the profiler configuration is set to include packages and sub-packages from my application and profiler filter is set to process only packages from my application. I can see in the profiler tab of JVisualVM that its instrumenting classes. However no statistics generated in snapshot for application code. Only system threads and EHCache threads are being profiled.
Question
———————-
What additional configuration needs to be done from my end? Are the packages that I am selecting not being instrumented? Is there a way to determine what is being instrumented and what is not?