From: Pete Hodgson Date: 2009-05-09T05:49:04+09:00 Subject: Re: Ruby memory usage Thanks so much for all the input folks, it's really really appreciated. ruby -v gives: ruby 1.8.6 (2008-06-20 patchlevel 230) [i386-linux] I did some additional tweaks to the memory profiler, and it now dumps a yaml document with object space details every 10 seconds. I did some analysis on discovered that: - Virtual memory grows in a straight line serially over time - Resident memory grows up to a point, then start fluctuating. I'm presuming that's the kernel starting to reclaim resident memory from the process as it starts to run out of physical memory. - Object counts stay almost entirely flat over time. At this point I wonder whether the issue is with the MRI GC, as Tony mentioned. I'm a little leary of upgrading to 1.9 just in order to fix this, but I might give it a try just to see what the memory usage over time looks like compared to 1.8.6. -- Posted via http://www.ruby-forum.com/.