help tracking memory leaks

I

Ittay Dror

Hi,

I have a ruby script that uses a lot of memory, dumping ObjectSpace
shows that indeed a lot of object exist that shouldn't. However, I can't
tell why. I don't know the root object that causes the chain of
references that marks them as used. What tool can help here? (I think
ruby-prof and bleakhouse are no good since they only show objects that
are not garbage collected, not why they are not collected)

Thank you,
Ittay
 
R

Roger Pack

I have a ruby script that uses a lot of memory, dumping ObjectSpace
shows that indeed a lot of object exist that shouldn't. However, I can't
tell why. I don't know the root object that causes the chain of
references that marks them as used. What tool can help here? (I think
ruby-prof and bleakhouse are no good since they only show objects that
are not garbage collected, not why they are not collected)


Saw this recently:
http://www.ruby-forum.com/topic/167320#new
"GC.reachability_paths"

old but about the only thing out there for MRI. You could also try
running your code on JRuby and see if it works [different GC]
-=R
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top