<p class="p1">valgrind is your best bet:</p><p class="p1">valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /usr/local/freeswitch/bin/freeswitch -vg</p><p class="p1">
<br></p><p class="p1">run this on normal traffic for a while and get the log file.</p><p class="p1"><br></p><p class="p1">if you unload mods it would not help with a leak but it would with a swelling pool.</p><p class="p1">
<br></p><br><div class="gmail_quote">On Mon, Nov 14, 2011 at 11:30 AM, François Delawarde <span dir="ltr">&lt;<a href="mailto:fdelawarde@wirelessmundi.com">fdelawarde@wirelessmundi.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I&#39;m experiencing what I think is a memory leak in a production system<br>
with a recent git (2-Nov), with FS consuming &gt;5GB and increasing after a<br>
few days with never more than 10 calls at once.<br>
<br>
While the users are not experiencing problems so far, I&#39;m a bit worried.<br>
So I have a few questions:<br>
<br>
- How can I be sure it&#39;s a leak and not some memory pool thing that FS<br>
would free when the system needs (system has 10GB total)?<br>
<br>
- If I unload modules one by one, is the memory used by this module<br>
freed immediately?<br>
<br>
- What would be a &quot;good&quot; way to try and narrow down the cause? Is<br>
valgrind a good tool for that?<br>
<br>
Of course I&#39;ll try with GIT HEAD and try my best to find the cause<br>
before considering to add a new Jira issue, otherwise it&#39;s quite<br>
useless.<br>
<br>
<br>
Thanks,<br>
François.<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>