我要评分
获取效率
正确性
完整性
易理解

Viewing Lock and Wait Analysis Results

Prerequisites

A sampling analysis task has been created and the analysis is complete.

Procedure

  1. In the Task/Report List area of the Java Profiler page, click the name of the analysis task under Sampling Profiling.
  2. Click the CPU tab and then the Lock and Wait tab.
    The page shown in Figure 1 is displayed. 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.
    Figure 1 Lock and wait analysis results
    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.