Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. 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. 2. **查看进程内存** cat /proc/${pid}/status
  3. 3. **系统内存信息** cat /proc/meminfo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement