From: Darshan Patil Date: 2006-10-26T16:00:09+09:00 Subject: Re: debugging memory use and GC snacktime wrote: > What is a good way to find out what objects are not being GC'd ? I am > seeing a strange pattern I can't figure out. The app is handling > large files and will use up to 150mb or so of memory and then when I > call GC.start it goes back down to around 8mb. But after a few cycles > memory stops being reclaimed. > > Chris > Print out all Objects to a file before the leak and after the leak. diff the files. Sort the objects by their class and then the object_id. If you suspect some objects, add a finalizer using ObjectSpace#add_finalizer and put some trace in it. -- Darshan Patil "The trouble with work is that it interferes with living." - Peter Mckill 1968 http://scattrbrain.com