Forum: Ruby on Rails rake test takes too much memory, starts swapping

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.
E8b4b55c5a84aaa4afdfbafde135308d?d=identicon&s=25 Andrew Arrow (andrewfromgeni)
on 2009-04-17 22:03
I've noticed with a large rails project with lots of tests, when you run
them all the amount of memory the ruby process allocates is a lot.

It seems like every object in every test is being retained.  Like the
garbage collector thinks objects from the very first test are still
being used even when we are on test #100 and the first test's object can
be released.

Is there anyway to tell rake to release objects after each test?
This topic is locked and can not be replied to.