Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM WARNING: [pool pool5] server reached max_children setting (4), consider raising it

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Matt Williams, Dec 16, 2015.

  1. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    6:27 PM
    latest
    10
    Where would I edit [pool pool5] ? I know the main one fpmconf but where do I edit the different pools 2-5?
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,019
    6,923
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,429
    Local Time:
    9:27 AM
    Nginx 1.13.x
    MariaDB 5.5
    see Beta Branch - Centmin Mod .08 beta03+ Multiple PHP-FPM pools support added | Centmin Mod Community

    Each phpfpm_poolX.conf file respectively has a listen = 127.0.0.1:9002 through to 127.0.0.1:9005, their own slowlog, pm.status_path, ping.path, own php-fpm-poolX.sock path (commented out), own error_log path at /var/log/php-fpm/www-php.error-poolX.log and named the pools as pool2, pool3, pool4, and pool5.

    Code:
    ls -lah /usr/local/nginx/conf/phpfpmd
    total 24K
    drwxr-xr-x 2 root root 4.0K Jun 26 05:57 .
    drwxr-xr-x 5 root root 4.0K Jun 26 05:34 ..
    -rw-r--r-- 1 root root 1.8K Jun 26 05:55 phpfpm_pool2.conf
    -rw-r--r-- 1 root root 1.7K Jun 26 05:35 phpfpm_pool3.conf
    -rw-r--r-- 1 root root 1.7K Jun 26 05:35 phpfpm_pool4.conf
    -rw-r--r-- 1 root root 1.7K Jun 26 05:35 phpfpm_pool5.conf
    so /usr/local/nginx/conf/phpfpmd/phpfpm_pool5.conf