dino d. wrote:
> My app has reached the memory limit allotted by my host.  Can someone
> tell me how I go about reducing the memory footprint?  Does rails load
> every single gem it finds, and can I somehow throw away the ones I
> don't need?  Any other advice or suggestions for strategies or tools
> to diagnose where memory is being used would be appreciated.

The real question is: what's hogging up memory? Use theory of 
constraints: find the parts of your application that use the most 
memory, optimize it, and move on to the next battle.

You should profile and benchmark your application to find out. There's 
lots of tools you could use for that, including railsbench and the 
NewRelic/FineRuns/Scout facilities.

Depending on the time you have on your hands it might be cheaper to up 
the memory. RAM's cheap and developer time typically isn't.

--
Roderick van Domburg
http://www.nedforce.com
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to