#40286 [Com]: PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed
| From: | bgross at mcw dot edu | Date: | Wed, 22 Jul 2009 20:45:22 +0000 |
| Subject: | #40286 [Com]: PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140094@lists.php.net to get a copy of this message | ||
ID: 40286
Comment by: bgross at mcw dot edu
Reported By: gabriel at oxeva dot fr
Status: No Feedback
Bug Type: CGI related
Operating System: Linux 2.6
PHP Version: 5.2.0+
Assigned To: dmitry
New Comment:
... on second thought, after looking at my php.ini again, I think the
major change was due to adding the line "session.gc_probability = 1". I
believe this is set to "session.gc_probability = 0" by default in
Debian
Previous Comments:
------------------------------------------------------------------------
[2009-07-22 20:14:41] bgross at mcw dot edu
I'm not familiar with the inner-workings PHP, so I'm sorry if this is
not relevant.
I was experiencing a problem with php-cgi processes staying around and
filling up my memory. After I added the line "cgi.fix_pathinfo=1" to my
php.ini, the problem went away.
I'm using PHP FastCGI 5.2.6 with Lighttpd 1.4.19 on Debian 5.0.2
Hope that's helpful
------------------------------------------------------------------------
[2009-07-02 03:41:27] porjo38 at yahoo dot com dot au
The php 5.3.0 changelog states the following:
"Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill
children when parent is killed). (Dmitry)"
I've just compiled php 5.3.0 under Centos5.3 with Apache2.2.3 +
mod_fcgid2.2-4.
The issue is still occuring for me. When I restart Apache, I usually
end up with a bunch of php-cgi process with ppid of 1 (init), although
it doesn't happen every time.
------------------------------------------------------------------------
[2009-05-16 03:43:15] scripts at topducks dot com
I'm using php5.2.9 mod_fcgid, not using children method.
Whenever I restart apache I get orphaned php processes.
Without the cron job to check and kill them off they would waste a lot
of memory.
------------------------------------------------------------------------
[2009-01-21 23:34:39] xani666 at gmail dot com
In my case that bug was happening on apache + php 5.2.8 + mod_fastcgi +
mod_suexec with about ~20 sites (3-4 busy most time of day, other used
from time to time) with fastcgi options -idle-timeout 240
-maxClassProcesses 1 and PHP_FCGI_CHILDREN=4 so processes died quite
often.
------------------------------------------------------------------------
[2008-10-09 08:35:41] natit at ctvnet dot dp dot ua
HELP CHILDREN OF UKRAINE!
Children in need.
DONATE EDUCATIONAL MATERIALS TO CHILDREN IN IMPOVERISHED COUNTRIES
In some parts of the world, educational materials such as books, paper,
pencils, rulers and erasers are scarce and expensive. Donate now to help
children in need.
PAY PAL natit@ctvnet.dp.ua
------------------------------------------------------------------------
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/40286
--
Edit this bug report at http://bugs.php.net/?id=40286&edit=1