LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > php-5.1.4 fcgi not killed on restart/reload

Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2006, 02:03 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default 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
Reply With Quote
  #2  
Old 05-18-2006, 08:46 AM
xing xing is offline
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".
Reply With Quote
  #3  
Old 05-18-2006, 12:35 PM
mistwang mistwang is offline
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?
Reply With Quote
  #4  
Old 05-21-2006, 12:36 AM
ts77 ts77 is offline
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?
Reply With Quote
  #5  
Old 05-21-2006, 11:14 AM
xing xing is offline
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. =)
Reply With Quote
  #6  
Old 05-21-2006, 11:53 AM
xing xing is offline
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.
Reply With Quote
  #7  
Old 05-24-2006, 01:12 PM
ts77 ts77 is offline
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
APC refuses to work on php 5.1.4 amcd PHP 14 07-25-2006 01:21 PM
PHP Accelerators for PHP 5.1.4 ? Arkadius PHP 3 07-24-2006 06:11 PM
1.5RC1 context xing Bug Reports 2 04-28-2004 09:27 AM
PHP FCGI Module and Mysql 4.x+ odie Install/Configuration 9 08-27-2003 09:33 PM


All times are GMT -7. The time now is 11:18 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.