On Mon, Sep 13, 2010 at 7:33 AM, Amit Tomar <li...@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
AREA 17
-
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
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to