This is invalid.<br><br>Those places are where sip calls are created and they are most definitely not leaking.<br>If anything, it suggests dialogs that are up still and not yet destroyed at the termination of the program. <br>
If this location in the code was a leak it would be gigs not megs missing.<br><br>Did you do the exact command I said (especially -vg param to FS) and then a full clean shutdown all the way back to the shell?<br><br>Are you maybe not getting the BYE to your calls creating open dialogs?<br>
You may want to turn on the sip trace.<br><br><br><div class="gmail_quote">On Mon, Apr 19, 2010 at 10:29 AM, Sergey Okhapkin <span dir="ltr">&lt;<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Valgrind doesn&#39;t show leaks in mod_nibblebill, most of the leaked memory was<br>
in mod_sofia:<br>
<br>
==12476== 53,064 bytes in 67 blocks are definitely lost in loss record 138 of<br>
141<br>
==12476==    at 0x4026378: malloc (in /usr/lib/valgrind/x86-<br>
linux/vgpreload_memcheck.so)<br>
==12476==    by 0x6A0DC8F: sofia_handle_sip_i_invite (sofia.c:6538)<br>
==12476==<br>
==12476==<br>
==12476== 92,664 bytes in 117 blocks are definitely lost in loss record 139 of<br>
141<br>
==12476==    at 0x4026378: malloc (in /usr/lib/valgrind/x86-<br>
linux/vgpreload_memcheck.so)<br>
==12476==    by 0x6A2F76F: sofia_glue_do_invite (sofia_glue.c:1874)<br>
==12476==<br>
<br>
BTW, do I understand FS code correct that channel private data are always<br>
handled by sqlite, even if I enable core ODBC?<br>
<div><div></div><div class="h5"><br>
<br>
On Monday 19 April 2010, Anthony Minessale wrote:<br>
&gt; 300M is tiny. try having 2000 channels up you can soar into a gig of usage.<br>
&gt;<br>
&gt; That valgrind report only showed 100k leaked which means it was all<br>
&gt; accounted for and torn down in the end.<br>
&gt;<br>
&gt; If you can find a specific leak in the nibble bill module with valgrind we<br>
&gt; will gladly fix it and you<br>
&gt; can gladly thank us for giving you a way to make money by the second.<br>
&gt;<br>
&gt; valgrind --tool=memcheck --log-file=vg.log --leak-check=full<br>
&gt; --leak-resolution=high --show-reachable=yes<br>
&gt; /usr/local/freeswitch/bin/freeswitch -vg<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Apr 18, 2010 at 11:48 AM, Sergey Okhapkin<br>
&gt;<br>
&gt; &lt;<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>&gt;wrote:<br>
&gt; &gt; Which valgrind options should I specify? I did run<br>
&gt; &gt;<br>
&gt; &gt; valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-<br>
&gt; &gt; resolution=high --show-reachable=yes ./freeswitch -nonat -vg<br>
&gt; &gt;<br>
&gt; &gt; 100K leaked is nothing compared to FS process RSS of 300M...<br>
&gt; &gt;<br>
&gt; &gt; On Sunday 18 April 2010, Anthony Minessale wrote:<br>
&gt; &gt; &gt; Also thatb suggests you leaked a whopping 100k<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Apr 18, 2010 11:35 AM, &quot;Anthony Minessale&quot; &lt;<br>
&gt; &gt;<br>
&gt; &gt; <a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; That&#39;s not very useful you need a full report with extended checking.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Apr 18, 2010 7:34 AM, &quot;Sergey Okhapkin&quot; &lt;<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; According to v...<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Saturday 17 April 2010, Michael Jerris wrote:<br>
&gt; &gt; &gt; &gt; That is a completely incorrect statement. Usi...<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; FreeSWITCH-users mailing list<br>
&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <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>