Welcome! Log In Create A New Profile

Advanced

php-fpm constantly dieing

Posted by MACscr 
MACscr
php-fpm constantly dieing
September 04, 2010 12:28AM
Ok, so I have php-fpm setup with php 5.3.3 and nginx 0.8.x and php-fpm
seems to be constantly failing. I really unfortunately do not know
enough about php-fpm to describe the problem well enough, but I will
do my best. Basically all of a sudden and quite often after I post
something in wordpress, php sites all of a sudden stop working. The
php-fpm process is still running as you can see below, but none of the
php based sites are working. i just get a blank page and the php-
fpm.log shows:

########################################

Sep 03 20:22:15.219370 [DEBUG] pid 32759, fpm_children_make(), line
403: [pool webusr] child 307 started
Sep 03 20:22:15.221329 [DEBUG] pid 32759, fpm_children_make(), line
403: [pool webusr] child 308 started
Sep 03 20:22:15.224877 [DEBUG] pid 32759, fpm_children_make(), line
403: [pool webusr] child 309 started
Sep 03 20:22:15.227350 [DEBUG] pid 32759, fpm_children_make(), line
403: [pool webusr] child 310 started
Sep 03 20:22:15.229446 [DEBUG] pid 32759, fpm_children_make(), line
403: [pool webusr] child 311 started
Sep 03 20:22:15.231399 [DEBUG] pid 32759, fpm_children_make(), line
403: [pool webusr] child 312 started
Sep 03 20:22:15.231550 [NOTICE] pid 32759, fpm_event_loop(), line 111:
ready to handle connections
Sep 03 20:59:54.760576 [DEBUG] pid 32759, fpm_got_signal(), line 48:
received SIGCHLD
Sep 03 20:59:54.760704 [WARNING] pid 32759, fpm_children_bury(), line
249: [pool webusr] child 300 exited with code 1 after 2259.555869
seconds from start
Sep 03 20:59:54.763212 [NOTICE] pid 32759, fpm_children_make(), line
403: [pool webusr] child 1416 started

##########################################

and here is a partial output of 'ps aux':

#########################################

www-data 27723 0.0 0.2 6128 2976 ? S 17:45 0:00
nginx: worker process
www-data 27724 0.0 0.2 6128 2976 ? S 17:45 0:02
nginx: worker process
www-data 27725 0.0 0.2 6128 3044 ? S 17:45 0:01
nginx: worker process
www-data 27726 0.0 0.2 6128 3040 ? S 17:45 0:00
nginx: worker process
root 29353 0.0 0.2 5684 2492 ? Ss 00:58 0:00
nginx: master process /usr/sbin/nginx
root 32759 0.0 0.5 74324 5600 ? Ss 20:22 0:00 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
webusr 32760 0.1 5.6 94148 57760 ? S 20:22 0:12 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
webusr 32761 0.1 5.1 90360 52384 ? S 20:22 0:14 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
webusr 32762 0.1 5.6 97232 58268 ? S 20:22 0:13 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
webusr 32763 0.1 4.0 81912 41008 ? S 20:22 0:13 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
webusr 32764 0.1 4.4 81920 46044 ? S 20:22 0:15 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
webusr 32765 0.1 4.1 82188 42804 ? S 20:22 0:14 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf
webusr 32766 0.1 4.1 81928 42488 ? S 20:22 0:13 /usr/
sbin/php5-fpm --fpm-config /etc/php5/fpm/main.conf

############################################

I have all sites (only 5 of them) using the same pool (webusr) with
pretty much only my own traffic hitting the server since its just used
for testing right now. I have tried doing static and dynamic child
processes, but no difference. Ive been trying to debug things for over
a week now, but no luck.

Any ideas?

Thanks,
Mark
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready