[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

help tracking memory leaks

Ittay Dror

9/26/2008 5:21:00 PM

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

--
--
Ittay Dror <ittay.dror@gmail.com>



1 Answer

Roger Pack

10/8/2008 12:27:00 AM

0


> 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-...topic/...
"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
--
Posted via http://www.ruby-....