linux 怎么查进程占用内存大小
发布网友
发布时间:2022-04-19 11:02
我来回答
共1个回答
热心网友
时间:2022-05-25 23:44
root@localhost:~# top -bn 1 |grep nginx
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11749 root 20 0 86008 1632 300 S 0.0 0.0 0:00.00 nginx
11750 root 20 0 86984 2932 1052 S 0.0 0.0 2:33.99 nginx
11751 root 20 0 86680 2932 1048 S 0.0 0.0 2:36.48 nginx
11753 root 20 0 86960 2932 1052 S 0.0 0.0 2:31.39 nginx
11754 root 20 0 86680 2932 1044 S 0.0 0.0 2:41.62 nginx
root@localhost:~#
root@localhost:~# top
top - 15:00:52 up 44 days, 5:53, 3 users, load average: 0.46, 0.67, 0.72
Tasks: 221 total, 1 running, 220 sleeping, 0 stopped, 0 zombie
%Cpu(s): 7.9 us, 3.4 sy, 0.1 ni, 88.0 id, 0.6 wa, 0.1 hi, 0.0 si, 0.0 st
KiB Mem: 24590068 total, 23478864 used, 1111204 free, 779016 buffers
KiB Swap: 15625212 total, 1400 used, 15623812 free. 18608024 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND