Bug #14194 Updated: no manual entry for apache_child_terminate
| From: | torben@php.net | Date: | Sat, 09 Feb 2002 21:56:33 +0000 |
| Subject: | Bug #14194 Updated: no manual entry for apache_child_terminate | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-79850@lists.php.net to get a copy of this message | ||
ID: 14194
Updated by: torben@php.net
Reported By: samjam@php.net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: All
PHP Version: 4.0.6
New Comment:
This bug has been fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2001-11-23 07:00:39] samjam@php.net
apache_child_terminate when called by a script running under apache's
mod_php will cause the current process serving the request and
executing the script to terminate once the request is complete.
This is useful if a script "knows" it has allocated a large ammount of
memory (which apache can't possibly give back to the system) and is
likely to be invoked again by another apache process soon leaving the
system with all apache processes hogging large ammounts of memory which
they are never likely to need again unless they get lucky and the same
greedy script gets assigned to one of it's previous processes.
Previously the fix was to set all apache processes to terminate after
serving only one request but now the greedy script can just call
apache_child_terminate(); instead - which actually has the effect of
making it look like that apache process has served past it's limit.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14194&edit=1