|
|

05-18-2006, 02:03 AM
|
|
Senior Member
|
|
Join Date: Nov 2004
Posts: 288
|
|
php-5.1.4 fcgi not killed on restart/reload
Hi there,
I don't know if its related to php-5.1.4 only which has a changed fast-cgi implementation or to lsws.
But since upgrading to php-5.1.4 there is at least one php5-process left on gracefull reload/restart running at 100% cpu-load.
Same happens if I completely shut down lsws ... I need to manually kill those php-processes with kill -9 ... .
Any options beside not running php-5.1.4? 
Thanks,
thomas
|

05-18-2006, 08:46 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
|
|
|
Thomas, I would like to reproduce this problem on my end. Can you email the following to xing [at] litespeedtech.com:
1) Your php configuration line (top output from phpinfo()) ../configure ...
2) /lswsinstall/conf/httpd_config.xml (if you have the fcgi external app defined there). If you have the external app defined in the vhost, send me the vhost xml file as well.
Your problem with php 5.1.4 fcgi should fairly easy to reproduce.
PHP 5.1.3 introduced the new fcgi codebase and 5.1.4 contained a few critical fcgi fixes so I'm certain the new fcgi code in PHP is still yet, not "well tested".
|

05-18-2006, 12:35 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
Thomas,
I think it is a bug in PHP's fcgi module. Maybe it was a infinity loop in signal handling routine fastcgi_cleanup() when "PHP_FCGI_CHILDREN" was set.
Have you tried "strace" on the hanging PHP process?
|

05-21-2006, 12:36 AM
|
|
Senior Member
|
|
Join Date: Nov 2004
Posts: 288
|
|
Thanks guys.
mistwang: I've done a strace when it happened the first time. it were only the same "read"-commands over and over again showing there.
xing: you still need that data to reproduce this? Or are we going to wait for a fixed fcgi in php-5.1.5? 
|

05-21-2006, 11:14 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
|
|
|
Thomas, send me the info anyways. We can save quite a bit of time by setting up an absolute fail environment on a live machine with traffic so that we not only confirm the problem, isolate the fix, but ensure the fix does not have any regressions with traffic volume test.
Of course, that is assuming it's not a PHP fcgi problem. =)
|

05-21-2006, 11:53 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
|
|
If it's indeed a PHP FCGI problem, you can always try the snapshot release.
http://snaps.php.net/
There are new fixes for the PHP CGI/FCGI module. Looks like the next release is 5.2 and not 5.1.5.
|

05-24-2006, 01:12 PM
|
|
Senior Member
|
|
Join Date: Nov 2004
Posts: 288
|
|
I think its a php-cgi problem ...
the strace looks like the following:
Code:
read(5, "", 8) = 0
read(5, "", 8) = 0
read(5, "", 8) = 0
read(5, "", 8) = 0
read(5, "", 8) = 0
read(5, "", 8) = 0
read(5, "", 8) = 0
...
I've sent you my info about the php-install anyway.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 11:18 PM.
|
|