Rails memory tips?
- Jdf
- Posts: 2
- Starts: 2
- Wiki Edits: 0
I just uploaded a Rails app that seems to be idling at around 41MB. Any general tips on memory management?
- William
- Posts: 1061
- Starts: 32
- Wiki Edits: 56
One of the best articles I've read on the subject was written by Antonio Cangiano
http://antoniocangiano.com/articles/2007/02/10/top-10-ruby-on-rails-performance-tips
I'd also add that you should be careful with what plugins/gems you are using. Gems like RMagick are known to crash Mongrel servers leaving 503 errors in the browsers of visitors. So if you must use something like RMagick - keep its usage simple and short. That will go a long way to help keeping your memory usage down.
http://antoniocangiano.com/articles/2007/02/10/top-10-ruby-on-rails-performance-tips
I'd also add that you should be careful with what plugins/gems you are using. Gems like RMagick are known to crash Mongrel servers leaving 503 errors in the browsers of visitors. So if you must use something like RMagick - keep its usage simple and short. That will go a long way to help keeping your memory usage down.