Forum: Ruby on Rails Tips on finding memory leaks

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
970efdae7d4dd77370743065457b17fe?d=identicon&s=25 Steven Mohapi-Banks (Guest)
on 2005-12-12 19:22
(Received via mailing list)
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
6b655cbfb773c06803214fdf03fa8d1c?d=identicon&s=25 Tom Wilcoxen (Guest)
on 2005-12-12 20:34
(Received via mailing list)
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-opti...

-Tom
http://convergentarts.com
970efdae7d4dd77370743065457b17fe?d=identicon&s=25 Steven Mohapi-Banks (Guest)
on 2005-12-12 20:46
(Received via mailing list)
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
This topic is locked and can not be replied to.