psygarden Wrote:macbishop Wrote:psygarden Wrote:According to this changelog that bug has been fixed in php 5.2.5
http://www.php.net/ChangeLog-5.php
Can anyone confirm this? I'm going to test now...
The bug was fixed in 5.2.2 version (03-May-2007)
Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed). (Dmitry)
upgrading from php 5.2.0 to 5.2.5 has this result on my cpu loads:
The last bit of the graph shows the cpu usage while the server is under a normal load with all sites active.
So it turns out that all that one needs to do on a debian system is update the /etc/apt/sources.list to include the "testing" versions of php5
Quote:#Old sources that came with the default install of my hosting company:
#deb http://ftp.freenet.de/debian/ etch main non-free contrib
#deb-src http://ftp.freenet.de/debian/ etch main non-free contrib
#new sources including all versions.
deb http://packages.dotdeb.org etch all
deb-src http://packages.dotdeb.org etch all
Then run
#apt-get update
and
#apt-get upgrade
After installation is complete you can kill all the stuck child processes using
php4:
Quote:/usr/bin/killall -HUP php-cgi
php5:
Quote:/usr/bin/killall -HUP php5-cgi
I'm using this fix and so far so good...