84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
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