# Rails taking too much ram

**URL:** <https://www.ruby-forum.com/t/rails-taking-too-much-ram/194034>\
**Category:** Rails\
**Created:** [August 28, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/rails-taking-too-much-ram/194034 "2010-08-28T19:26:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![npnpnp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/94ad74/32.png) [@npnpnp](https://www.ruby-forum.com/u/npnpnp)\
**Post date:** [August 28, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/rails-taking-too-much-ram/194034/1 "2010-08-28T19:26:32Z")

</div>

Hi,

I am trying to deploy my application that requires rails-2.3.8,  
ferret\_server running in background(DRB) and workling\_client+sterling.

Above configuration is running on a VPS with 512MB, latest Ruby  
Enterpise Edition+  
passenger+nginx+mysql. But I continue to see out of memory issues.  
What I notice that every ruby thread is consuming 15%of 512MB(from  
top) including workling and ferret\_server.

Are there some ways to fine tune ruby, passenger or others to make  
sure that I do not run out of memory ? From REE documentation, it  
seems that ruby thread spawned by passenger can share rails  
environment  
and application code. Is it possible to do similar kind of sharing  
with passenger+ferret\_server+workling, because it seems that each one  
of these is loading same code separately.

What are the the other ways to reduce RAM requirement ?

Any help will be appreciated.

Thanks,  
np
