# Failed to allocate memory

**URL:** <https://www.ruby-forum.com/t/failed-to-allocate-memory/195530>\
**Category:** Rails\
**Created:** [September 24, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/failed-to-allocate-memory/195530 "2010-09-24T13:12:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amit-singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Post date:** [September 24, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/failed-to-allocate-memory/195530/1 "2010-09-24T13:12:40Z")

</div>

Hi all,  
Am running apache as frontend to mongrel ,i am passing request  
to mongrel using passproxy like  
ProxyPass / [http://localhost:3000/](http://localhost:3000/)

i have download routine in one of controller and now i would like  
Apache to server this request…for that i put a line in httpd.conf

ProxyPass /streams/download/6626/ !

now my request for download should be handle by Apche but when i go  
task manager and see the memory usage…  
ruby.exe is consuming 1,240,460k  
abd httpd.exe is still 24,656k

how do make Apache to server and after 1.1 gb of file being downloded  
ruby.exe is still consuming 1,240,460k and when i try to download 1.1 gb  
of stream again ,i am getting failed to allocate memory
