Sergey:<br><br>just making sure. When you say it works okay, did you mean the memory leak stopped?<br><br><br><br><div class="gmail_quote">On Wed, May 12, 2010 at 6:23 PM, Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I didn't try yesterday Anthony's update, but his previous fix works OK.<br>
<br>
Please note that comments in nibblebill config file and default actions in<br>
nibblebill code for lowbal_action, nobal_action and percall_action are<br>
incorrect, the parameters are not the applications to execute, but dialplan<br>
extensions to transfer the call to.<br>
<div><div></div><div class="h5"><br>
On Wednesday 12 May 2010, Henry Huang wrote:<br>
> Sergey:<br>
><br>
> Did you tried the latest code of nibbliebill? and did it fix your problem?<br>
><br>
><br>
><br>
> On Tue, May 11, 2010 at 12:23 AM, Anthony Minessale <<br>
><br>
> <a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
> > ok so you don't know for sure then, this is obviously a small box.<br>
> > My browser right now is using 500m to let me write this email to you.<br>
> ><br>
> > if you find nothing, it would suggest pools growing more than a real leak<br>
> > since valgrind would normally pick it up.<br>
> > I did not make this nibble bill module but I did correct the code in the<br>
> > place you pointed out. Give it a try.<br>
> ><br>
> > I wish I could nibble-bill this mailing list =p<br>
> ><br>
> ><br>
> > On Mon, May 10, 2010 at 11:14 AM, Sergey Okhapkin <<br>
> ><br>
> > <a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>> wrote:<br>
> >> It's already on jira - FSMOD-48. Valgrind with --leak-check=full finds<br>
> >> nothing.<br>
> >><br>
> >> Memory kept growing and growing, I had to restart FS when RSS reached<br>
> >> 500M to<br>
> >> avoid swap.<br>
> >><br>
> >> On Monday 10 May 2010, Anthony Minessale wrote:<br>
> >> > Why does this thread continue on the list instead of being opened in<br>
> >><br>
> >> JIRA<br>
> >><br>
> >> > Can you see how this issue can be forgotten because it's on the<br>
> >> > mailing list that gets 200 emails a day?<br>
> >> > When you show the code in the body of an email like that, then I have<br>
> >> > to spend a minuted wondering where in the code you were talking about<br>
> >><br>
> >> because<br>
> >><br>
> >> > it's not in the form of a unified diff.<br>
> >> ><br>
> >> > I appreciate that you do not normally have to deal with organized<br>
> >><br>
> >> software<br>
> >><br>
> >> > management but I must ask that you please spend a little time to learn<br>
> >><br>
> >> our<br>
> >><br>
> >> > customs and use JIRA and patches to communicate bug reports. I am<br>
> >> > glad<br>
> >><br>
> >> you<br>
> >><br>
> >> > are helping to find problems but we really need to stay organized to<br>
> >><br>
> >> make<br>
> >><br>
> >> > it forward.<br>
> >> ><br>
> >> > I redid the function in latest GIT. It did look like it was doing a<br>
> >> > few things wrong but they probably would have surfaced in valgrind if<br>
> >> > you<br>
> >><br>
> >> were<br>
> >><br>
> >> > running it in full leak check mode. When you say it goes to 300M,<br>
> >> > does<br>
> >><br>
> >> it<br>
> >><br>
> >> > keep going from there because there is a bit of memory that will be<br>
> >><br>
> >> pooled<br>
> >><br>
> >> > as you start to use more advanced features. Did you ever watch it to<br>
> >><br>
> >> see<br>
> >><br>
> >> > how high it will go?<br>
> >> ><br>
> >> > On Sun, May 9, 2010 at 4:01 PM, Sergey Okhapkin<br>
> >><br>
> >> <<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>>wrote:<br>
> >> > > Shouldn't label "end:" be BEFORE<br>
> >> > > switch_odbc_statement_handle_free(&stmt); ?<br>
> >> > > I think it should...<br>
> >> > ><br>
> >> > ><br>
> >> > > static switch_status_t bill_event(<br>
> >> > > ....<br>
> >> > ><br>
> >> > > if (switch_odbc_handle_exec(globals.master_odbc, sql, &stmt,<br>
> >><br>
> >> NULL)<br>
> >><br>
> >> > > != SWITCH_ODBC_SUCCESS) {<br>
> >> > > char *err_str;<br>
> >> > > err_str =<br>
> >> > > switch_odbc_handle_get_error(globals.master_odbc, stmt);<br>
> >> > > switch_log_printf(SWITCH_CHANNEL_LOG,<br>
> >> > > SWITCH_LOG_ERROR, "ERR:<br>
> >> > > [%s]\n[%s]\n", sql, switch_str_nil(err_str));<br>
> >> > > switch_safe_free(err_str);<br>
> >> > > } else {<br>
> >> > > /* TODO: Failover to a flat/text file if DB is<br>
> >><br>
> >> unavailable<br>
> >><br>
> >> > > */<br>
> >> > ><br>
> >> > > goto end;<br>
> >> > > }<br>
> >> > ><br>
> >> > > switch_odbc_statement_handle_free(&stmt);<br>
> >> > ><br>
> >> > > end:<br>
> >> > ><br>
> >> > > On Sunday 09 May 2010, Brian West wrote:<br>
> >> > > > What are you calling significant memory usage?<br>
> >> > > ><br>
> >> > > > /b<br>
> >> > > ><br>
> >> > > > On May 9, 2010, at 2:10 PM, Sergey Okhapkin wrote:<br>
> >> > > > > Valgrind output shows no significant leaks. This was discussed<br>
> >> > > > > already<br>
> >> > ><br>
> >> > > in<br>
> >> > ><br>
> >> > > > > this thread a month ago.<br>
> >> > > > ><br>
> >> > > > > On Sunday 09 May 2010, Brian West wrote:<br>
> >> > > > >> Please use valgrind and see where its leaking then open a jira.<br>
> >> > > > >><br>
> >> > > > >> Nobody has been able to reproduce this in a lab nor provide any<br>
> >> > ><br>
> >> > > details<br>
> >> > ><br>
> >> > > > >> to assist in finding the issue... All I have seen is people<br>
> >> > ><br>
> >> > > complaining<br>
> >> > ><br>
> >> > > > >> about it and not doing what they should debugging the issue and<br>
> >> > > > >> reporting it.<br>
> >> > > > >><br>
> >> > > > >> /b<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:<br>
> >><br>
> >> <a href="http://lists.freeswitch.org/mailman/options/freeswitch-user" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-user</a><br>
> >><br>
> >> > > >s <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><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:<br>
> >><br>
> >> <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >><br>
> >> > > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><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>
> ><br>
> > --<br>
> > Anthony Minessale II<br>
> ><br>
> > FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> > ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
> > Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
> ><br>
> > AIM: anthm<br>
</div></div>> > <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
> > GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><PAYPAL%3Aanthony.minessal<br>
<div class="im">> ><a href="mailto:e@gmail.com">e@gmail.com</a>> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
> ><br>
> > FreeSWITCH Developer Conference<br>
</div>> > <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
> > <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><googletalk%3Aconf%2B888@con<br>
<div class="im">> ><a href="http://ference.freeswitch.org" target="_blank">ference.freeswitch.org</a>> pstn:+19193869900<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>
><br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<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>UniC Solution - Communication Unified<br>VoIP & Open Source software Consultant<br>