I have gone with Freeswitch&#39;s inbuilt odbc implementation, and I have the _r libs in use for the drivers.<div><br></div><div>Fingers crossed it helps matters, should know in a few days.<br><br><div class="gmail_quote">
On 14 March 2011 16:25, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
also make sure to use the _r version of any libs you use such as<br>
myodbc or mysqlclient<br>
<br>
look in /etc/odbcinst.ini and chances are its not the _r one<br>
<br>
# Driver from the MyODBC package<br>
# Setup from the unixODBC package<br>
[MySQL]<br>
Description     = ODBC for MySQL<br>
Driver          = /usr/lib64/libmyodbc3.so<br>
Setup           = /usr/lib64/libodbcmyS.so<br>
FileUsage       = 1<br>
<br>
<br>
/usr/lib64/libmyodbc3.so needs to be /usr/lib64/libmyodbc3_r.so<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Mon, Mar 14, 2011 at 10:27 AM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt; Try using the freeswitch.Dbh interface:<br>
&gt; <a href="http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh" target="_blank">http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh</a><br>
&gt; It gives you a ODBC interface through freeswitch&#39;s odbc support, plus you<br>
&gt; get the benefit of the connection caching.<br>
&gt; -Steve<br>
&gt;<br>
&gt;<br>
&gt; On 14 March 2011 14:28, Pete Kelly &lt;<a href="mailto:pkelly@gmail.com">pkelly@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 14 March 2011 13:16, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If you use mod_lcr, we were getting a memory leak in that a few weeks ago<br>
&gt;&gt;&gt; which is fixed in the latest git.<br>
&gt;&gt;<br>
&gt;&gt; No we are not. I am going to try strengthening up the code which closes<br>
&gt;&gt; the DB connections. If that fails then I will compile and try the ODBC<br>
&gt;&gt; driver.<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -Steve<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 14 March 2011 09:30, Pete Kelly &lt;<a href="mailto:pkelly@gmail.com">pkelly@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi<br>
&gt;&gt;&gt;&gt; We are using Freeswitch (from git sources) in a production environment<br>
&gt;&gt;&gt;&gt; to handle an IVR system using a simple set of dialplans and lua scripts.<br>
&gt;&gt;&gt;&gt; OpenSIPS 1.6 and mysql are also installed and running as part of the same<br>
&gt;&gt;&gt;&gt; IVR application.<br>
&gt;&gt;&gt;&gt; However over time (approx 1 week) the memory usage of Freeswitch<br>
&gt;&gt;&gt;&gt; increases, eventually creeping into swap space forcing us to restart<br>
&gt;&gt;&gt;&gt; Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we<br>
&gt;&gt;&gt;&gt; have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes -<br>
&gt;&gt;&gt;&gt; both exhibit the same issue.<br>
&gt;&gt;&gt;&gt; We have also tried the Sangoma freeswitch branch in case that contained<br>
&gt;&gt;&gt;&gt; any fixes, however we see the same issues.<br>
&gt;&gt;&gt;&gt; Can anybody advise if this is a known issue with Freeswitch? Is it a<br>
&gt;&gt;&gt;&gt; memory leak or is it possible to limit the amount of memory Freeswitch will<br>
&gt;&gt;&gt;&gt; use, forcing it to garbage collect when it reaches the limit?<br>
&gt;&gt;&gt;&gt; Any advice on where to look/debug next would be appreciated.<br>
&gt;&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;&gt; Pete<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt;&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;&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;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&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;&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;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<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;&gt;<br>
&gt;<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>
&gt;<br>
<br>
<br>
<br>
</div></div>--<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>
<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" target="_blank">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>
<div><div></div><div class="h5"><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></div>