linux 查看应用的内存状态

1: top -p pid 查看程序的情况

2: ps -aux | grep process_name

3: cat /proc/pid/status

这里会打印出当前进程详细的情况,其中,内存是 VmRSS。
注:pid是要替换成一个id数字的。

发布了58 篇原创文章 · 获赞 40 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/xinzhifu1/article/details/67637611