You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Leonardo <le...@gmail.com> on 2010/05/30 17:10:13 UTC

[users@httpd] Buffering Output to Disk

Hi, everyone. I have a PHP script that is a huge content generator,
and it's making my server run out of memory very often, because the
content is generated faster than the user can download it, I guess. So
I assume that it's buffering the output on memory. My question is if
there's any way Apache would buffer the script output on disk, not on
RAM. I don't want to cache the output. It must be generated at every
user request. What can I do?

Thanks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Buffering Output to Disk

Posted by Nilesh Govindarajan <li...@itech7.com>.
On Sun, May 30, 2010 at 8:40 PM, Leonardo <le...@gmail.com> wrote:
> Hi, everyone. I have a PHP script that is a huge content generator,
> and it's making my server run out of memory very often, because the
> content is generated faster than the user can download it, I guess. So
> I assume that it's buffering the output on memory. My question is if
> there's any way Apache would buffer the script output on disk, not on
> RAM. I don't want to cache the output. It must be generated at every
> user request. What can I do?
>
> Thanks.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


I don't think this can be done with Apache. You need to use PHP's
bufferring mechanism.
Wait for someone else to reply, may be they know Apache based
bufferring solution :?

-- 
Nilesh Govindarajan
Facebook: nilesh.gr
Twitter: nileshgr
Website: www.itech7.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org