Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. **获取PID进程的内存信息** pmap -x ${pid} | sed 's/\[//;s/\]//' | grep rw | awk '{total[$7]+=$2}END{for(v in total){print total[v],v}}' | sort -n
- 2. **查看进程内存** cat /proc/${pid}/status
- 3. **系统内存信息** cat /proc/meminfo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement