> -----Original Message-----
> From: Teodor Cimpoesu [mailto:[EMAIL PROTECTED]]
> Sent: 23 November 2001 10:54
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] CGI quick cleanup
>
>
> Hi Edin!
> On Fri, 23 Nov 2001, Edin Kadribasic wrote:
>
> > I have noticed the same problem with a scipt that used a
> very large array
> > (~160 MB). The script run time was around 35 seconds, while
> it took over 4
> > minutes to shut down! Same amount of time was used in
> trying to unset() the
> > array.
>
> [wild guess]
> probably the memory deallocation is the one expensive here.
>
> BTW, don't use large arrays in PHP as Apache module cause
> when the process
> grows requesting more memory (brk(2)) it cannot release it back to the
> system (because the httpd process is still running).
To solve THIS problem I added ap_child_terminate support to php so you could
request apache to terminate after the page, though this seems to have been
dropped in later releases.
The patch was accepted and did appear in at least one release, I don't know
why it went.
But our problem is not as an apache module but as a system script, using php
-q
Sam
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]