8

NGINX/PHP-FPM cpu spikes and runaway processes

view full story
linux-howto

http://serverfault.com – Recently I switched to NGINX/PHP-FPM to run my forums. The majority of the time, the site runs beautifully, seriously quick and I'm really happy with it. Its on a 13 core/30+GB memory instance with AWS, so ample resources (was on 8 core, 16GB before with Apache.) So, what happens is, the majority of the time we have 6 or 7 PHP-FPM processes and all is well with the world; PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 27676 apache 20 0 499m 34m 19m R 49.2 0.1 0:06.33 php-fpm 27669 apache 20 0 508m 48m 24m R 48.2 0.1 0:10.84 php-fpm 27661 apache (HowTos)