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)