Shell 来观察内存占用情况:
PID=50662;while true; do; ps aux | grep $PID | grep -v grep | awk '{print $5" "$6}' >> t; sleep 1; done
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/91975/viewspace-2063166/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/91975/viewspace-2063166/