From: Tony Arcieri Date: 2009-05-09T06:58:50+09:00 Subject: Re: Ruby memory usage --0016368e264fb1eeb604696dbbb9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, May 8, 2009 at 2:49 PM, Pete Hodgson wrote: > > 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 think memory profiling using ObjectSpace is fundamentally flawed (a few years ago I wrote an ObjectSpace-powered memory profiler and had many issues with it) You might check out bleak_house instead: http://blog.evanweaver.com/files/doc/fauna/bleak_house/files/README.html > 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. > With JRuby you can have 1.8 compatibility plus your selection of all the pluggable garbage collectors available in the JVM. -- Tony Arcieri medioh.com --0016368e264fb1eeb604696dbbb9--