[Freeswitch-users] Mod LUA memory leak
Chad Phillips
chad at apartmentlines.com
Wed Nov 15 07:04:43 UTC 2017
>From the error message, it looks like you’re using LuaSQL. The LuaSQL/MySQL
driver has historically had a pretty bad memory leak when used with
FreeSWITCH, so if you’re using that…stop :)
It’s preferred to use the native freeswitch.Dbh approach to connect to a
database. I believe you’ll need to set up the ODBC/MySQL connector for
that. Prior to freeswitch.Dbh, I also used the LuaSQL/ODBC driver, which
didn’t leak memory like the MySQL one.
Hope that helps.
On Tue, Nov 14, 2017 at 1:57 PM, Jai Rangi <jprangi at gmail.com> wrote:
>
> I have been using LUA heavily and everything has been fine till FS 1.6.13.
> Since I upgraded one system to 1.6.17 and 1.6.19, I see this error just
> after 2-3 hours of FS restart.
>
> 2017-11-14 21:53:23.113817 [ERR] mod_lua.cpp:203 ...ocal/freeswitch/share/
> freeswitch/scripts/xml_handler.lua:100: LuaSQL: error connecting: Out of
> memory.
> stack traceback:
> [C]: in function 'assert'
> ...ocal/freeswitch/share/freeswitch/scripts/xml_handler.lua:100: in
> main chunk
> 2017-11-14 21:53:23.113817 [ERR] mod_lua.cpp:271 LUA script parse/execute
> error!
>
> Same configuration, same modules, same scripts, same library. Everything
> works fine till 1.6.13. Wondering if anyone experiencing something similar.
> I can open a bug report, but just wanted to make sure this is not only me.
>
> Thank you,
> -Jai
>
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171114/03aeecc6/attachment.html>
More information about the FreeSWITCH-users
mailing list