root@localhost# ps -eo pmem,pcpu,rss,vsize,args |sort -k 1 -r |grep httpd |awk 'BEGIN{sum=0;print "메모리 점유율";}{sum += $1}END{print sum"%"}'
root@localhost# ps -eo pmem,pcpu,rss,vsize,args |sort -k 1 -r |grep httpd |awk 'BEGIN{sum=0;print "메모리 점유율";}{sum += $1}END{print sum"%"}'