linux - centos服务器如何用命令查看哪个程序内存占用情况
迷茫
迷茫 2017-04-17 15:03:32
0
8
731

centos服务器如何用命令查看哪个程序内存占用情况

free -m只能查看内存总量情况

我想查看每个程序单独使用的情况用什么命令

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(8)
巴扎黑

top
ps
You can try it

top

巴扎黑

Try the magic tool atop

迷茫

Try this: top

左手右手慢动作
yum install htop -y
htop
巴扎黑

ps aux | grep your program name

黄舟

htop is more detailed and can be installed through yum, yum install htop

Ty80

Simple command, top 10 memory-consuming programs, all programs are listed without adding head

ps aux|head -1; ps aux | sort -k4nr | head -10
迷茫

top command, M can see the percentage occupied by the process and estimate the memory occupied by the process

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template