Server & MPM
Apache MPM
Check yours with: apachectl -V | grep MPM (httpd -V on RHEL).
Reserved for other services (MB)
MySQL은 InnoDB 버퍼 풀 계산기로, PHP-FPM은 pm.max_children 계산기로 구하세요. mod_php를 쓰면 PHP-FPM은 0으로 두세요 (PHP가 Apache 프로세스 안에서 실행됨).
Kept free for spikes and memory growth. 10% is typical; max 90% (higher values are reset to 90).
ps -o rss= -C apache2 | awk '{ s+=$1; n++ } END { printf "%d processes, avg %.0f MB\n", n, s/n/1024 }'
RHEL/Alma/Rocky: replace apache2 with httpd. Run it under real traffic; ps -ylC apache2 --sort:rss lists each process if you want the largest one.
Apache defaults: ThreadsPerChild 25, ThreadLimit 64. ThreadsPerChild cannot exceed ThreadLimit.
Recommended limits
Formula
Memory breakdown at peak
Leave empty to chart the recommended value. Enter the number from your config to see whether it fits in RAM.
MPM config