Edit report at http://bugs.php.net/bug.php?id=52796&edit=1

 ID:                 52796
 Patch added by:     f...@php.net
 Reported by:        momchil at xaxo dot eu
 Summary:            Sep 08 15:22:32.861368 [WARNING] [pool www0] child
                     25271 said into stderr: "php
 Status:             Assigned
 Type:               Bug
 Package:            FPM related
 Operating System:   linux
 PHP Version:        5.3SVN-2010-09-08 (SVN)
 Assigned To:        fat
 Block user comment: N

 New Comment:

The following patch has been added/updated:

Patch Name: fpm-nomorelibevent.v2.patch
Revision:   1284478708
URL:       
http://bugs.php.net/patch-display.php?bug=52796&patch=fpm-nomorelibevent.v2.patch&revision=1284478708


Previous Comments:
------------------------------------------------------------------------
[2010-09-10 00:08:56] f...@php.net

just follow the current bug and the following http://bugs.php.net/52501

------------------------------------------------------------------------
[2010-09-10 00:03:11] momchil at xaxo dot eu

ok, can you please point me to the bug report about reloading so that I
can follow it and know when it gets fixed?

------------------------------------------------------------------------
[2010-09-10 00:00:49] f...@php.net

you should not use FPM reloading since this bug has not been corrected.
Please use 

restart instead.

------------------------------------------------------------------------
[2010-09-09 23:57:39] momchil at xaxo dot eu

1,2,4,5 are known.



about forking: I thought you mean forking inside php code and did not
thought about system(), there is some code using the system() function.

reloading: I did not reload fpm at the moment when the crash happened,
we are reloading it on fpm.conf/php.ini changes



about what I wrote just before on 2010-09-09 21:38 UTC: I was told that
the mail() function has been used about 1500 times in a script for
sending newsletter, which might be related as you pointed out.



I will try without the emergency restart as you suggest, thank you for
the pointers and your time investigating this :)

------------------------------------------------------------------------
[2010-09-09 23:47:47] f...@php.net

You have a lots of error in your LOG file:



1- Sep 08 14:10:10.251071 [WARNING] [pool www0] child 13097 said into
stderr: "Connection from 

disallowed IP address '10.13.20.24' is dropped."



you should allow those IP address



2- you have a lots of PHP errors which are written to stdout. Search for
"said into stderr" in 

you LOG file.



3- You have calls from external command (rm, convert). when run, php
forks for running those 

command. The problem seem to be similar to bug
http://bugs.php.net/52501



4- you have a lot of requests which are executing too slow after 15s and
which are ptraced to 

slowlog.



5- you have a lot of requests which are timeouted after 30s.



6- you have a lot of warning saying your server "seems busy". you should
review your 

configuration file to increase min/max_spare_server.



4- I asked if you did reload FPM. You said no and your LOG file says you
had:



Sep 08 03:10:07.634996 [NOTICE] using inherited socket fd=6,
"10.13.20.26:9910"



5- I asked if your PHP scripts forks somehow. It appears so





finaly, the problem occurs when:



- some PHP scripts are forking some process (via system() or mail())

- FPM is reloading via emergency_restart_threshold



It's a bug related to libevent and forking. I'm on it. You should try
disabling 

emergency_restart_threshold temporarily.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=52796


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52796&edit=1

Reply via email to