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
- Log in to the management console.
- Click
on the left and choose Management & Governance > Application Performance Management.
- In the navigation pane, choose Application Monitoring > Metrics.
- In the tree on the left, click
next to the target environment.
Figure 1 Debugging diagnosis - Click the Debugging Diagnosis tab.
- Check the Thread Analysis page, which is displayed by default.
- Select an instance from the drop-down list.
- In the upper right corner of the thread analysis page, click Searching the blocking thread to view the details about the blocked threads.
- Click Re-execute to search the threads again.
- Enter the filter criteria in the search box. Click
to view the threads that meet the filter criteria.
- Thread analysis: displays the thread name, CPU usage, and number of threads.
- 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.
- 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 informationTable 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.
- 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 - Click Close. The Thread Analysis page is displayed.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot