One quick way to determine how much memory is being consumed by all apache processes is to use the following command:
ps -eo user,pid,pcpu,cmd,rss | egrep httpd | awk '{SUM += $5} END {print "Total memory used: " SUM}'
One quick way to determine how much memory is being consumed by all apache processes is to use the following command:
ps -eo user,pid,pcpu,cmd,rss | egrep httpd | awk '{SUM += $5} END {print "Total memory used: " SUM}'
Leave a Reply