[Mongrel] failed to allocate memory while downloading large files

Luis Lavena 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):
>  C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/cache.rb:60:in
> `<<'
>  C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/cache.rb:60:in
> `expand_cache_key'

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
interfering it.
Luis Lavena
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 mailing list