However, we made some testing even with a base Rails installation, and
it looks like Rails is not at fault with the memory leaks. We also
tried to figure out what went wrong, and until now, it's an on-going
investigation. It's hard to pin-point where the leak is coming from,
since it's a really big app.
Based on our investigation one particular common mistake that leads to
leaks is when we manipulate instantiated objects within the request
(controller action) and pass them over to a global method (class
method). Like for example, keeping a global list of some object that
is appended in the request. The mistake doesn't have to be this
obvious, but can be in a similar situation where locally instantiated
objects are being pointed to in the global context. You might want to
keep this in mind when you look for that leak.
Hope that helps!
Mark
--
------------------------------------
Mark John S. Buenconsejo
http://www.simpleteq.com
It's a good thing we have tagged releases, so I can go back to SVN one
release at a time. I'll look for the code patterns Mark mentioned; it
seems to me that our permissions code which is called almost
everywhere use that pattern.
rad