Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualVM and Self Time

I've been searching all over for a consistent and clear explanation of what 'self time' actually refers to in the VisualVM context and how does it differ to 'self time (cpu)'. Also does 'self time [%]' refer to self time or self time cpu.

There doesn't appear to be much documentation on this or at least I haven't found it. So any thoughts/input will be appreciated.

like image 483
AndyF Avatar asked Jan 31 '13 13:01

AndyF


People also ask

What is self time VisualVM?

Self Time is a wall-clock time spent in the method itself (includes time waiting/sleeping). Self Time (CPU) is a time processor time, so it does NOT include time spent waiting, sleeping, etc. Both columns do NOT include time spent in methods invoked from that method.

What is the use of VisualVM?

Java VisualVM is a tool that provides a visual interface for viewing detailed information about Java applications while they are running on a Java Virtual Machine (JVM), and for troubleshooting and profiling these applications.

What is VisualVM executable?

What is VisualVM. It is a tool automatically available after JDK is installed. The executable file could be found on your <JDK installation folder>/bin as displayed below. In order to measure the performance of your application, it is necessary for the application to be recognized by VisualVM first.

Does JDK come with VisualVM?

Java VisualVM was first bundled with the the Java platform, Standard Edition (Java SE) in JDK version 6, update 7.


1 Answers

  • Self Time is a wall-clock time spent in the method itself (includes time waiting/sleeping).
  • Self Time (CPU) is a time processor time, so it does NOT include time spent waiting, sleeping, etc.

  • Both columns do NOT include time spent in methods invoked from that method.
  • Both Self Time and Self Time (CPU) in the sampler are approximation of actual data.
  • Self Time [%] refers to one of the two selected Self Time [(CPU)] columns.
like image 97
Tomas Hurka Avatar answered Oct 13 '22 20:10

Tomas Hurka