PHP and Apache Using up all memory
| From: | Juan E Suris | Date: | Sat, 06 Mar 2004 17:18:09 +0000 |
| Subject: | PHP and Apache Using up all memory | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179652@lists.php.net to get a copy of this message | ||
Hi!
I have a problem with PHP and Apache, where Apache uses up a huge amount of memory. What happens is
that I have a PHP script that creates a file on the fly and sends it directly to the broswer (as an
attachment, so that the user can save it). The problem is that when the file is big and the client
download speed is slow, the Apache process uses up as much memory as the file size. My guess here is
that PHP keeps writing data as fast as it can, and Apache caches it in memory until the user can
download it all.
Is there any way to avoid this?
My apologies if this is an obvious question.
Thanks,
Juan