|
The thread history view shows the list of all threads in the JVM in the order
they were started. On the left hand side of the view, the names of the threads
appear as a fixed column, the rest of the view is filled with a scrollable
measuring tool which shows time on its horizontal axis. The origin of the time axis
coincides with the starting time of the first thread in the JVM. Each alive thread
is shown as a colored line which starts when the thread is started and
ends when the thread dies. The color indicates a certain thread status and is
one of
- green
Green color means that the thread is runnable and eligible for
receiving CPU time by the scheduler. This does not mean that the thread has
in fact consumed CPU time, only that the thread was ready to run and was not
blocking or sleeping. How much CPU time a thread is allotted, depends on various
other factors such as general system load, the thread's priority and the scheduling
algorithm.
- orange
Orange color means that the thread is waiting.
The thread is sleeping and will be woken up either by a timer or by another thread.
- red
Red color means that the thread is blocking.
The thread has is trying to enter a synchronized code section
or a synchronized method whose monitor is currently held
by another thread.
- blue
Light blue color means that the thread is in Net I/O.
The thread is waiting for a network operation of the java library
to complete. This thread state occurs if a thread is listening for socket connections
or if it is waiting to read or write data to a socket.
Note: If you are color-blind, you can edit bin/jprofiler.vmoptions
and set -Djprofiler.highContrastMode=true. The above colors will then
have an optimal contrast.
|