Linux memory usage command

cat /proc/meminfo

particularly useful in cases where you can’t use top.

more see: cyberciti.biz/faq/ram-size-linux/

Show Apache / httpd memory usage and process size

ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}'

thanks S.G. Vulcan