Rate This Document
Findability
Accuracy
Completeness
Readability

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 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.
    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)

    Total blocking time of all threads 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)

    Total block time of the thread on all monitors.

    Sampling Count

    Number of samplings.