1. 按进程查看:top命令即可,然后可以Shift+m按内存占用比例排序;Shift+p可按CPU占用比例排序;
2. 查看总体占用情况:free -m
total used free shared buffers cached
Mem: 1010 956 54 0 153 296
-/+ buffers/cache: 506 503
Swap: 0 0 0