性能监控
top
top
是 Linux 系统中用来实时监控系统性能和进程的命令。它的输出包含系统的总体资源使用情况、进程列表以及进程的资源使用明细。以下是 top
输出的各部分解释:
top - 13:31:39 up 42 days, 20:05, 6 users, load average: 38.15, 27.77, 16.46
Tasks: 639 total, 1 running, 565 sleeping, 0 stopped, 0 zombie
%Cpu(s): 19.9 us, 9.0 sy, 0.0 ni, 70.0 id, 0.8 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem : 65359412 total, 1237276 free, 51401168 used, 12720968 buff/cache
KiB Swap: 31998972 total, 30326640 free, 1672332 used. 12949852 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30100 root 20 0 9528208 1.604g 16528 S 166.7 2.6 27:52.77 java
3253 root 20 0 5574388 251848 21056 S 77.8 0.4 25731:19 dockerd