[Mongrel] failed to allocate memory while downloading large files
luislavena at gmail.com
Mon Sep 13 09:57:01 EDT 2010
On Mon, Sep 13, 2010 at 7:33 AM, Amit Tomar <lists at ruby-forum.com> wrote:
> hii ,
> I uploaded 1 GB of file to filesystem,but now when i trying to
> download this 1 GB of file ,i am getting failed to allocate memory.
> am running mongrel as server in development mode.
> NoMemoryError (failed to allocate memory):
This has nothing to do with Mongrel.
>From the backtrace it seems you're trying to cache all the file
contents in memory.
What is the code you're using to serve the file? Mongrel is quite
capable to serve any file from public folder without any Rails code
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
More information about the Mongrel-users