Java Thread Validator - Current Thread Locks
The current thread locks view shows information about each waiting monitor,
each locked monitor and each wait event for each thread in the application.
Information about each thread is shown prior to showing information about
the monitors and wait events for that thread.
Unlike the summary locks view,
with the per thread locks view you can see information about a monitor for
each thread that uses the monitor.
Unlike the per thread locks view, only
monitors currently locked or waiting for each thread are shown. This information
can be very useful for identifying errors such as deadlocks.
Each entry is colour coded to indicate activity, contention, recursion, misc
errors, potential deadlocks and deadlock conditions.
In the picture shown below, the colour coding is as follows:
- Red. The entries in red show monitors that are involved in a deadlock.
- Purple. The entries in purple show monitors that have thread locking errors.
- Yellow. The entries in yellow show monitors that have been involved in contention between threads.
- Dark purple. The entries in dark purple show monitors that are have miscellaneous locking errors.
- Grey. The entries in grey show monitors that have been used.
Click the picture for a larger image.



