CPU visualvm profile but run () - Violation methods

i profile of a large jboss server with many classes in it. When I look at the CPU, the result will always be something like java.util.TimerThread.run () = 62% and java.util.concurrent.ThreadPoolExecutor $ Worker.run () = 34.8%. For these two methods, thousands of other methods have 0%. I think this is a bad mistake, because most of these methods work in these threads. But how can I see which one ... ThreadDump - Function is also not suitable for this.

+4
source share
1 answer

If you don’t know which part of the code is slow, it’s best to start with a processor fetch. Once you know better (based on the results of the selection) what is wrong, you can only profile part of your jboss server. See Profiling with VisualVM, Part 1 and Profiling with VisualVM, Part 2 for more information on profiling and how to set up root profiling and the instrumental filter.

+4
source

Source: https://habr.com/ru/post/1397004/


All Articles