I need some help to clear up a confusion on my part. I’ve read a few
things that mentioned memory leaks in Rails apps, and I’ve noticed my
own Rails app memory footprint constantly increasing. Consequently
the FCGI process dies eventually from hitting a process max. Now
that I think about it, I think is what was causing the crashes at
But doesn’t Ruby take care of cleaning up memory with its garbage
collector? Obviously it needs to feel that a variable is out of
scope, and therefore can release the memory. So what are the causes
for it not to release the objects after a Rails request has completed?
And more important, how do you really hunt these down and fix these
Thanks for any pointers.