Updated on 2025-06-27 GMT+08:00

Thread Analysis

Thread analysis displays all threads of an application and thread stack information, helping you quickly locate time-consuming threads.

Constraints

Because method and object parameters are obtained for thread analysis in real time, information such as the thread status may change.

Procedure

  1. Log in to the management console.
  2. Click on the left and choose Management & Governance > Application Performance Management.
  3. In the navigation pane, choose Application Monitoring > Metrics.
  4. In the tree on the left, click next to the target environment.

    Figure 1 Debugging diagnosis

  5. Click the Debugging Diagnosis tab.
  6. Check the Thread Analysis page, which is displayed by default.

    1. Select an instance from the drop-down list.
    2. In the upper right corner of the thread analysis page, click Searching the blocking thread to view the details about the blocked threads.
    3. Click Re-execute to search the threads again.
    4. Enter the filter criteria in the search box. Click to view the threads that meet the filter criteria.
    5. Thread analysis: displays the thread name, CPU usage, and number of threads.
    6. Threads can be classified by status (NEW, BLOCKED, WAITING, TIMED_WAITING, TERMINATED, or RUNNABLE). You can click one type of threads to view thread analysis details.

  7. Click next to a thread to view the thread analysis information, including the thread name, thread ID, CPU usage, state, and operations.

    Figure 2 Checking thread analysis information
    Table 1 Thread analysis parameters

    Parameter

    Description

    Thread Name

    Name of a thread.

    Thread ID

    ID of a thread.

    Total CPU

    Total CPU

    State

    Thread state. Options: NEW, BLOCKED, WAITING, TIMED_WAITING, TERMINATED, and RUNNABLE.

  8. Click View the live stack in the Operation column to obtain the stack information.

    Figure 3 Live stack

    If the value of Thread ID is -1, the View the live stack option is grayed, showing that internal threads do not support stack query.

    Figure 4 Stack query not supported

  9. Click Close. The Thread Analysis page is displayed.