3

I already read VisualVM and Self Time

But I still don't get how to interpret. Here is my case :

Self Time : 500000ms
Self Time (CPU) : 72000ms

I understand that the method took 72s of CPU execution time (So real work without sub-method called).

Can I interpret that Threads have been blocked in this method for some reason during 500-72=428s ?

Which would mean I can begin to search concurrent access etc... ?

Context : Webapp under Tomcat

Community
  • 1
  • 1
Michael Laffargue
  • 10,116
  • 6
  • 42
  • 76

1 Answers1

4

Can I interpret that Threads have been blocked in this method for some reason during 500-72=428s ?

That is the most likely explanation. It is also conceivable that the thread was descheduled by the thread sheduler to let other threads run.

Which would mean I can begin to search concurrent access etc... ?

Synchronization (e.g. contention over locks or waiting for notifies) would be one possible possible explanation. Another would be waiting for blocking I/O operations to complete.

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216