Troubleshoot high CPU issues

Finally, summarize the methods and techniques for troubleshooting CPU failures:

1. top command: Linux command. You can view real-time CPU usage. You can also view the CPU usage of the recent period.

2. PS command: Linux command. Powerful process status monitoring commands. You can view the current CPU usage of the process and the threads in the process. Sampled data belonging to the current state.

3. jstack: Command provided by Java. You can view the current thread stack operation of a process. According to the output of this command, you can locate the current running status of all threads of a process, running code, and whether it is deadlocked and so on.

4, pstack: Linux command. You can view the current thread stack operation of a process.

 

Reprinted article: http://wely.iteye.com/blog/2335302

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326410141&siteId=291194637