Linux 如何查看某個進程佔用內存情況

1、ps -ef | grep "進程名" 獲取pid;然後 top -p pid 可查看內存。 【主要看RSS爲程序實際使用內存】

2、ps aux |grep "進程名", 可顯示進程專用內存

3、cat /proc/pid/status   【看VmRSS】

4、pmap -x pid

5、 ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid'  |grep "進程名"

注:

(RSS is the "resident set size" meaning physical memory used)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章