Viewing Lock and Wait Analysis Results
Prerequisites
A sampling analysis task has been created and the analysis is complete.
Procedure
- In the Task/Report List area of the Java Profiler page, click the name of the analysis task under Sampling Profiling.
- Click the CPU tab and then the Lock and Wait tab.The analysis result is displayed, as shown in Figure 1. For details about the parameters, see Table 1.
- The Stack Trace area displays the location where threads are blocked. The code that slows down the thread can be located by tracing the threads that have been blocked for a long period of time.
- You can enter a class name or thread name to quickly filter data.
- You can click
or
to expand or collapse the content.
Table 1 Parameters on the Lock and Wait tab page Parameter
Description
Monitor
Class
Class name of the monitor.
Total Block Time (ms)
Time duration for which a thread is blocked on the monitor.
Blocked Threads
Number of threads blocked on the monitor.
Sampling Count
Number of samplings.
Threads
Thread
Thread name.
Total Block Time (ms)
Time duration for which a thread is blocked on the monitor.
Sampling Count
Number of samplings.
Parent topic: Viewing Analysis Results
