Reputation: 195
i profile a big jboss server with a lot of classes in it. When i profile the CPU the result is always something like java.util.TimerThread.run() = 62% and java.util.concurrent.ThreadPoolExecutor$Worker.run() = 34,8%. Under these two methods thousand other methods have 0%. I think thats a bad bug, because most of these methods run in these Threads. But how can i see which one... The ThreadDump - Function isnt usefull for this too.
Upvotes: 4
Views: 828
Reputation: 6981
If you don't know which part of the code is slow, it is better to start with CPU sampling. Once you know better (based on the sampling results) what is wrong, you can profile just part of your jboss server. See Profiling With VisualVM, Part 1 and Profiling With VisualVM, Part 2 to get more information about profiling and how to set profiling roots and instrumentation filter.
Upvotes: 4