hello,<div><br></div><div>it's been couple of weeks since I patched, and there is no memory leak anymore.^^</div><div><br></div><div>I've used several tools to detect problems, </div><div>example, valgrind <a href="http://valgrind.org/" class="external-link" rel="nofollow" style="color:rgb(0,109,175);text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)"><font color="#006daf" face="Arial, Helvetica, FreeSans, sans-serif" style="color:rgb(0,109,175);text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)"><span style="outline-width:initial;outline-color:initial;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)">http://valgrind.org/</span></font><sup style="color:rgb(0,109,175);text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)"><img class="rendericon" src="http://wiki.nexrcorp.com/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; "></sup></a>, memwatch(<a href="http://www.linkdata.se/sourcecode/memwatch/" class="external-link" rel="nofollow" style="color:rgb(0,109,175);text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)"><font color="#006daf" face="Arial, Helvetica, FreeSans, sans-serif" style="color:rgb(0,109,175);text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)"><span style="outline-width:initial;outline-color:initial;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)">http://www.linkdata.se/sourcecode/memwatch/</span></font><sup style="color:rgb(0,109,175);text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:17px;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)"><img class="rendericon" src="http://wiki.nexrcorp.com/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; "></sup></a>)</div>
<div>for python test, i used guppy and it told me there was no leak.</div><div>but couldn't find ways to to detect. because valgrind couldn't track child thread, memwatch doesn't understand free statements sometimes.</div>
<div><br></div><div>It was my best way that just checking the candidate source codes line by line.</div><div>specially embeded python and python c-extension, there might be some missing in reference counting of object in c code.</div>
<div>please checkout following nice articles that explains the problem. </div><div><br></div><div><a href="http://edcjones.tripod.com/refcount.html">http://edcjones.tripod.com/refcount.html</a></div><div><br></div><div>hope you have lucky. ;)</div>
<div><br></div><div><br></div><div><br><div class="gmail_quote">2012/4/12 Richard Marshall <span dir="ltr"><<a href="mailto:richard.marshall@tagman.com" target="_blank">richard.marshall@tagman.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">In this thread it looks like you may have found a memory leak problem in collectd python, but I’m not sure. I am seeing a memory leak to in a very similar situation (though using the following plugin: <a href="https://github.com/mleinart/collectd-haproxy" target="_blank">https://github.com/mleinart/collectd-haproxy</a> . I’m using the Ubuntu package collectd-core 4.10.1-2. Are you able to confirm if this is an issue you have detected and resolved, and how I may apply that to my systems?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Many Thanks<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Rich<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><span style="font-size:10.5pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.5pt"><img width="153" height="53" src="cid:image001.png@01CD18A6.575F6600" alt="Description: cid:EBCCB7C5-BE97-454F-95DB-B5CD5BB470CA"></span><span style="font-size:10.5pt"><u></u><u></u></span></p>
<table border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt"><tbody><tr><td valign="top" style="padding:3.75pt 0cm 0cm 0cm"><p class="MsoNormal"><span style="font-size:9.0pt;color:red">Richard Marshall, Operations Director</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:gray">Address: 170-172 Tower Bridge Road, London SE1 3LS</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:9.0pt;color:gray">Phone:+44 203 465 9259</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:gray">Email: </span><u><span style="font-size:9.0pt;color:blue"><a href="mailto:Richard.Marshall@tagman.com" target="_blank">Richard.Marshall@tagman.com</a></span></u><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:gray">Skype: richtagman</span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:7.5pt">We're currently hiring in London and New York - </span><u><span lang="EN-US" style="font-size:7.5pt;color:blue"><a href="http://www.tagman.com/index.php/careers.html" target="_blank">http://www.tagman.com/index.php/careers.html</a></span></u><span style="font-size:12.0pt"><u></u><u></u></span></p>
</td></tr></tbody></table><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>James.kim(±è¹Î¼®)</div><div>010 3266 8040</div><div><br></div><br>
</div>