tags:

views:

83

answers:

2

Killing the processs while obtaining this information would be fine.

+1  A: 

A quick-and-dirty way would be ObjectSpace.each_object{|e| p e}. You could do some tests to determine what you wanted to keep, or Marshal the objects.

Pi
A: 

For the more hardcore there is also BleakHouse which gives you a special custom-compiled copy of ruby with better memory leak tracking powarz

Orion Edwards
Does bleak house work for others? I tried it and it just dumps core on anything but the most trivial program. This is ruby 1.8.6 on Ubuntu
Tim Martin