centos服务器如何用命令查看哪个程序内存占用情况
free -m只能查看内存总量情况
我想查看每个程序单独使用的情况用什么命令
业精于勤,荒于嬉;行成于思,毁于随。
toppsYou 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
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
top
ps
You can try it
top
Try the magic tool atop
Try this: top
ps aux | grep your program name
htop is more detailed and can be installed through yum, yum install htop
Simple command, top 10 memory-consuming programs, all programs are listed without adding head
top command, M can see the percentage occupied by the process and estimate the memory occupied by the process