Sergey:<br><br>Which version of nibbliebill are you using. We are having memory leak issue as well with freeswitch 1.0.4 , but I haven&#39;t try to disable nibblebill in our test, I will do that now. But since we are already doing what you say about &quot;&lt;param name=&quot;global_heartbeat&quot;<br>

value=&quot;off&quot;/&gt; in nibblebill.conf.xml and execute &quot;nibblebill 
heartbeat 60&quot; in<br>
dialplan.&quot;  in our current environment, and still getting memory leak, I am wondering if you are using nibblebill that comes with the freeswitch 1.0.6 version.<br><br>Thanks,<br><br><span style="color: black;"><div dir="ltr">
<div></div><br></div></span><br><div class="gmail_quote">On Mon, May 10, 2010 at 1:12 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;">
Looks like I found a work around. I set &lt;param name=&quot;global_heartbeat&quot;<br>
value=&quot;off&quot;/&gt; in nibblebill.conf.xml and execute &quot;nibblebill heartbeat 60&quot; in<br>
dialplan. No more unbounded memory growth. As soon as I set global_heartbeat,<br>
memory starts grow again. Go figure...<br>
<div><div></div><div class="h5"><br>
On Monday 19 April 2010, Sergey Okhapkin wrote:<br>
&gt; It would be the problem if custom_sql_* is set in nibblebill configuration,<br>
&gt; but it&#39;s not my case, I do not use custom sql. I&#39;m looking at the code<br>
&gt; more....<br>
&gt;<br>
&gt; On Monday 19 April 2010, Brian West wrote:<br>
&gt; &gt; No this isn&#39;t the problem it would show up on valgrind like crazy.<br>
&gt; &gt;<br>
&gt; &gt; /b<br>
&gt; &gt;<br>
&gt; &gt; On Apr 19, 2010, at 1:25 PM, Sergey Okhapkin wrote:<br>
&gt; &gt; &gt; Yes, I agree that these strdups can be ignored. I believe I found where<br>
&gt; &gt; &gt; the memory problem comes from, the beginning of bill_event function in<br>
&gt; &gt; &gt; mod_nubblebill has SWITCH_STANDARD_STREAM(sql_stream);<br>
&gt; &gt; &gt; But SWITCH_STANDARD_STREAM macro does malloc! I do not see a place in<br>
&gt; &gt; &gt; the function where the memory is freed. Am I right? #define<br>
&gt; &gt; &gt; SWITCH_STANDARD_STREAM(s) memset(&amp;s, 0, sizeof(s)); s.data =<br>
&gt; &gt; &gt; malloc(SWITCH_CMD_CHUNK_LEN); \ switch_assert(s.data);<br>
&gt; &gt; &gt;                                                                       \<br>
&gt; &gt; &gt; memset(s.data, 0, SWITCH_CMD_CHUNK_LEN);<br>
&gt; &gt; &gt;                       \ s.end = s.data;<br>
&gt; &gt; &gt;                                                                       \<br>
&gt; &gt; &gt; s.data_size = SWITCH_CMD_CHUNK_LEN;<br>
&gt; &gt; &gt;                               \ s.write_function =<br>
&gt; &gt; &gt; switch_console_stream_write;                                         \<br>
&gt; &gt; &gt; s.raw_write_function = switch_console_stream_raw_write;<br>
&gt; &gt; &gt;       \ s.alloc_len = SWITCH_CMD_CHUNK_LEN;<br>
&gt; &gt; &gt;                                       \ s.alloc_chunk =<br>
&gt; &gt; &gt; SWITCH_CMD_CHUNK_LEN<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&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; <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>Henry Huang<br>VoIP &amp; Open Source software Consultant<br>