Home > Back-end >  In the 2020-12-19 s: the system load is too high, how do you go to check?
In the 2020-12-19 s: the system load is too high, how do you go to check?

Time:12-20

In the 2020-12-19 s: the system load is too high, how do you go to check? # # f greatly architects a daily topic

CodePudding user response:

First to find which a few threads on the CPU, then through the thread id value in the stack file search for specific thread, to see what's the problem,

CodePudding user response:

1. The top command to check the machine load condition

2. CD/proc/pid view corresponding to the location of the high occupancy program

3. Enter the corresponding application view logs, according to the CPU and memory of these two factors analysis

4. Ps - ajxf view under the process and its thread, through the stat to see whether there is D zombie process

CodePudding user response:

1, first using the top see baiCPU takes up high into the du cheng, find out the process process ID (zhipid);
Look at methods: daotop
2, according to the into zhuan process ID (pid) look for the thread of shu process CPU is high,
Check method: top - Hp pid
3, the use of pstack, view the high CPU thread is doing,
Look at methods: pstack pid
4, according to pstack analysis, should be able to see the problem
  • Related