Tips on finding memory leaks

Hi all,

Despite going through a pretty comprehensive test cycle and doing
performance testing on my development server I am seeing my memory
usage on my Textdrive account growing incrementally. My process takes
about a week to hit 45mb from a start of around 30.

I’m not really sure where to start looking, as my suspected actions
run fine in development even bashing them with curl for a couple of
hours solid.

Are there any “gotchas” or typical things I should be looking for as
far as memory leaks in Rails apps?

Cheers,
Steve

45MB doesn’t sound too out of line, especially if it then stays there,
but
you might check tip number 7 here:

http://weblog.textdrive.com/article/175/rails-optimizing-resource-usage

-Tom
http://convergentarts.com

Cheers,

I’ve read Julik’s piece several times. We’ve been very careful during
development to make sure that everything’s thoroughly tested, so
seeing this is a bit of a pain.

I’m wondering if making heavyish use of ActionMailer might cause
problems… our app does make use of outgoing mail quite a lot.

I’ve tested 80% of our actions in development and after 2 hours of
continuous hits at 2 hits per second the fcgi processes never go over
30mb