thanks for the replies.  i'm on dreamhost running passenger.  their
support is horrible, it takes 48 hours to get an e-mail response.
anyway, i'm just looking to patch up my memory use in the app for the
time being, and i was wondering how i go about decreasing the memory
footprint by either optimizing code or removing unnecessary or unused
gems or plugins.  so the two generic questions are :

1) how do you/can you detect and removed unused gems or modules?
2) what kinds of things make memory bloat?  can you give me a push in
the right direction based on experience?  do i start in my controllers
or models, etc.?

i have no experience whatsoever in assessing where memory is used in a
rails app and would appreciate any common patterns of opportunity for
mem reduction.

thanks a lot.
dino

On Feb 15, 11:08 am, Roderick van Domburg <rails-mailing-l...@andreas-
s.net> wrote:
> 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 Domburghttp://www.nedforce.com
> --
> Posted viahttp://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