Get the most out of your Centmin Mod LEMP stack
Become a Member

PHP-FPM Why my php-fpm alway stop

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by computer19852007, Dec 14, 2015.

  1. computer19852007

    computer19852007 Member

    84
    8
    8
    Jun 25, 2014
    Ratings:
    +9
    Local Time:
    6:03 PM
    Centmin Mod 1.2.3-eva2000.06
    MariaDB 5.5.34
    Please Help me, my php-fpm auto Stop? my website have 30visit/day
    Help me @eva2000

    Thank you

     
  2. computer19852007

    computer19852007 Member

    84
    8
    8
    Jun 25, 2014
    Ratings:
    +9
    Local Time:
    6:03 PM
    Centmin Mod 1.2.3-eva2000.06
    MariaDB 5.5.34
    i have command:

    And i see error log in /var/log/php-fpm

    Code:
    [11-Dec-2015 23:38:09] WARNING: [pool www] server reached max_children setting (4), consider raising it
    [12-Dec-2015 16:07:10] WARNING: [pool www] server reached max_children setting (4), consider raising it
    [14-Dec-2015 16:57:56] WARNING: [pool www] child 19995 exited on signal 11 (SIGSEGV) after 24.329566 seconds from start
    [14-Dec-2015 16:58:02] WARNING: [pool www] child 19996 exited on signal 11 (SIGSEGV) after 6.575085 seconds from start
    [14-Dec-2015 16:58:03] WARNING: [pool www] child 19997 exited on signal 11 (SIGSEGV) after 0.670065 seconds from start

    And i have view error log:

    Code:
    2015/12/14 18:05:47 [error] 20757#20757: *61 readv() failed (104: Connection reset by peer) while reading upstream, client: 42.116.211.233, server: store-online.pro, request: "GET /checkout/onepage/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.store-online.pro", referrer: "https://www.store-online.pro/checkout/cart/"
     
    Last edited: Dec 14, 2015
  3. eva2000

    eva2000 Administrator Staff Member

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    9:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    PHP is segfaulting and hitting it's limits with your specific php web application so you need to debug your php server. What are segfaults = Why Does The Segmentation Fault Occur on Linux / UNIX Systems?

    Examples with strace below:
    With gdb backtrace and PHP debug compiled mode where centmin.sh has a PHPDEBUGMODE variable which you can set to PHPDEBUGMODE=y and recompile php via centmin.sh menu option 5 to enable debug mode for PHP-FPM. After troubleshooting set PHPDEBUGMODE=n and recompile php via centmin.sh menu option 5 again to disable debug mode.
    Code:
    PHPDEBUGMODE=n # --enable-debug PHP compile flag
    Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation to the web stack components - nginx, php-fpm, mariadb mysql, csf firewall etc or web app specific configurations are left to the Centmin Mod user to deal with. So I do not provide any free support for such.

    You'll need to tune your PHP-FPM settings and this is left up to end user to do but here's a thread for starters to enable php status page output outlined at PHP-FPM - CentminMod.com LEMP Nginx web stack for CentOS and PHP-FPM - pm.max_children | Centmin Mod Community which outlines the official PHP-FPM config documentation as well.
     
  4. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    12:03 PM
    1.8.0
    increase to pm.max_children = 50 in ur php fpm config