Sven C. Koehler wrote:
> Hello!
> 
> Is there a way to get a list of all GC roots in my Ruby program?  I know
> there is a memory leak somewhere in my application, I just don't know in
> which part.  Listing all variables on the Heap becomes too large, but just
> seeing the GC roots would be a great help.  Can you suggest some ideas?
> 
> Best wishes,
> 
> Sven C. Koehler

There's a ruby patch to show what objects are reachable from the roots
(and the chain of references in each case):

http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/151854?151368-152549

It should easy to modify it to just show the roots.

-- 
      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407