[Mongrel] failed to allocate memory while downloading large files

Luis Lavena luislavena at gmail.com
Tue Sep 14 09:35:53 EDT 2010

On Tue, Sep 14, 2010 at 10:18 AM, Amit Tomar <lists at ruby-forum.com> wrote:
> Thanks luis
> you said right ,i have to check how uploading takes place..
> could you suggest some documnet ??

Google is your friend, "Rails File upload"


And others.

If the files are located in a remote server that is not in public
directory, then you will not have alternative but use something like
apache to serve map the files to the remote disk and serve them.

But please, avoid send_data at any cost, and even the file
reading/writing you're doing, because with the size you're working,
you're just slowing your application with IO operations.
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