RE: [PHP] apache_child_terminate?
| From: | Richard Lynch | Date: | Tue, 04 Jan 2005 17:56:46 +0000 |
| Subject: | RE: [PHP] apache_child_terminate? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205612@lists.php.net to get a copy of this message | ||
Robin Getz wrote:
> Curt Zirzow wrote:
>> > I should be able to turn this on with 'child_terminate' in php.ini
>> >
>> > However, I do this, and when I do a phpinfo(); it returns a:
>> >
>> > apache2handler with only three Directives:
>> > - engine
>> > - last_modified
>> > - xbithack
>>
>>Are you running apache in multithreaded per chance?
>>
>> http://php.net/manual/en/function.apache-child-terminate.phpØöiUÄqe·�À
>> ÁÊ
>>
>>Of course this begs the question why you want all php script's to
>>terminage apache, this will only provide extra cpu usage.
>
> I have a download script that for some reason, seems to be consuming lots
> of memory - no matter what I do.
>
> Someone suggested apache_child_terminate after the download is done, to
> kill the apache process, and make sure that the memory is released back to
> the OS.
Just for fun, try putting an "exit;" at the end of the script.
I've seen cases where PHP didn't seem to exit when it should, and would
just sort of site there...
I toss in 'exit;' and it works fine.
I've never found a pattern to when this happens, and it's so easy to
work-around I've never dug into it much...
--
Like Music?
http://l-i-e.com/artists.htm