Your PHP site feel fine all week. Then suddenly newsletter goes out, product get shared, or sale starts, and page that normally load in under second start hanging. To Configure PHP-FPM effectively and improve application performance, you first need to understand what’s happening behind the scenes. You open the PHP-FPM log and find one line repeated over and over:
WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
Enter fullscreen mode
Exit fullscreen mode
This warning is one of most common PHP-FPM log line on busy server, and in my experience “consider raising it” is start of investigation, not fix. If you configure PHP-FPM by guessing, you can turn slow site into crashing one. Raise worker limit too far and server run out of memory.…