The thread profiling feature provides statistics on the CPU time consumption at the thread level and the number of threads per type. ARMS records and aggregates the method stacks of threads every 5 minutes, which helps you review the code execution process and find out thread problems. When the CPU utilization of a cluster is high or a large number of slow methods are detected, the thread profiling feature can be used to find out the thread or method that consumes the most CPU resources.
- Log on to the ARMS console.
- In the left-side navigation pane, choose . In the top navigation bar, select a region.
- On the Applications page, click the name of the application.
- In the left-side navigation pane, choose .
Perform thread profiling
On the Threads Profiling page, all threads of the application are listed on the left. You can detect abnormal threads based on statistics in the CPU Time Consumption (ms) section. Select an abnormal thread and analyze the changes of the CPU time consumption and thread count based on the graphs in the CPU Time Consumption (ms) and Thread Count sections. For example, you can analyze whether the total number of threads per minute is overlarge.
You can also click Method Stack to view the method stack that is actually running within a specified period of time. For example, you can view the method stack of the threads in the BLOCKED state and optimize the specified code block to reduce CPU utilization.