Sum up RAM usage per program
how much ram do all php-fpm processes use together | total memory per service | total apache ram usage | which program uses the most memory overall | ps | awk | ram | php-fpmps -eo rss=,comm= | awk '{a[$2]+=$1} END {for (p in a) printf "%8.1f MB %s\n", a[p]/1024, p}' | sort -rn | head -15Adds up the RSS value of all processes per program name and prints the result in MB. This shows at a glance whether, say, 40 php-fpm workers together use more memory than the database. Helpful for setting pm.max_children or cache sizes realistically.
Note: Shared memory is counted for every process, so the values are an upper bound.
Also searched as
- how much ram do all php-fpm processes use together
- total memory per service
- total apache ram usage
- which program uses the most memory overall