views:

93

answers:

1

Forgive the newbie type question but, what determines the RAM consumed by rails and MySQL (my server is Ubuntu)? With barely any requests coming in the server seems to be hovering around 1.5 of 2GB. MySQL has about 100MB of data stored in it. The site has about 3500 registered users and when trafic is high, the memory tends to peak around 1.8 GB. When the traffic is low or non-existent, it doesn't drop much though.

What are the big factors in RAM consumption when it comes to RoR deployments? I would have assumed DB size but my DB size is nowhere near my RAM consumption (but maybe this is the wrong way to think about it?).

Can anyone point me to a good resource on this, or explain it to me here?

Thanks.

+1  A: 

EngineYard had a good blog post that discusses some potential sources for memory issues in Rails. How are you serving your site? (Passenger? Mongrel?)

Greg Campbell
Passenger. I have a 2GB slice (slicehost)
ChrisH
A few more questions: What Ruby version? What's your PassengerMaxPoolSize? Nginx or Apache? I'd guess there's something in the blog post I linked which could help you out, but the extra information couldn't hurt.
Greg Campbell
ruby 1.8.7ApachePassengerMaxPoolSize --> I haven't set this (so 6?), but now that I look it up, maybe I should?
ChrisH