Linux troubleshooting (personal experience)

%MEM - Percentage of physical memory used by the process

TIME+ - the total CPU time since the process started

Command - the name of the startup command for the process startup

You can see the cpu usage through the %cpu column. Now that you find the culprit, you should kill the relevant level.

close process

After executing the top command and the task list appears, if you want to close the process, directly press the K key on the keyboard

insert image description here

At this time, you will be asked to enter the pid of the process you want to close (the first column of the task list, if you do not enter it, it will close the first process by default)

For example, if you want to close the "51466" process in the above picture, enter 54166 and press Enter

Remember!

Remember!

Remember!

When entering numbers here, be careful not to press the keypad, but to press the row of number keys above the letter area of ​​the keyboard;

For example, if we want to close the process whose pid is 2, enter 2 and press Enter, the following prompt will appear, and press Enter again at this time to be ok

![Insert picture description here](https://img-blog.csdnimg.cn/20210127144445160.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9 "Analysis of Java Interview Questions for First-line Manufacturers + Post End-to-end development study notes + latest architecture explanation video + actual project source code handouts "Free open source prestige search public account [programming advanced road] ibG9nLmNzZG4ubmV0L3FxXzMzNzA5NTgy,size_16, color_FFFFFF,t_70)


Notice

If after executing the top command, you find that there is no process with high CPU usage, then you need to check the load average

insert image description here

There will be three values

load average:0.98,1.37,1.48

Interpretation:

The first digit indicates the average load in the last 1 minute

Guess you like

Origin blog.csdn.net/AK774S/article/details/124644581