From: Pete Hodgson Date: 2009-05-09T07:49:12+09:00 Subject: Re: Ruby memory usage Tony Arcieri wrote: > 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 > I'm thinking that is probably gonna have to be the next step. I had a bad experience trying to set it up in the past and now am a bit gun shy, but I'm running out of options here... > >> 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. Thanks, I'll give JRuby a run on a VM and see how it performs. I'm guessing that bleak_house and JRuby don't play together? -- Posted via http://www.ruby-forum.com/.