Language Preference and LUASQL leak??
The Wiki and comments on this list talk highly of Lua as the "preferred" language to use with FS, although JavaScript seems to be very active. The Wiki also mentions a serious memory leak when using the LUASQL. Is that still the case? And if so, is there a way to use LUA and access a MYSQL database that makes sense? Thanks
Hello, I do not experience that leak at the moment and I'm using Luasql in production ( 20-25k calls a day ) on fedora core 11. Either it's been fixed, or it's just that as I coded my scripts using careful local declaration of the sql stuff ( local var in blocks ) and calling the garbage collector after some time, it fixed the trouble. You can always use luasql with the odbc connector if you fear the mysql one, but the best advice I would give you is to try (ie write a sample script, use sipp to launch tests on a long period, and then notice if it leaks... ). Regards, Gled Le 11/07/2010 06:05, D Al a écrit :
The Wiki and comments on this list talk highly of Lua as the "preferred" language to use with FS, although JavaScript seems to be very active.
The Wiki also mentions a serious memory leak when using the LUASQL. Is that still the case? And if so, is there a way to use LUA and access a MYSQL database that makes sense?
Thanks
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks for info. Do you have any code segment of your successful implementation you would share? On Sun, Jul 11, 2010 at 3:45 AM, Tristan Mahé <t.mahe@telemaque.fr> wrote:
Hello,
I do not experience that leak at the moment and I'm using Luasql in production ( 20-25k calls a day ) on fedora core 11.
Either it's been fixed, or it's just that as I coded my scripts using careful local declaration of the sql stuff ( local var in blocks ) and calling the garbage collector after some time, it fixed the trouble.
You can always use luasql with the odbc connector if you fear the mysql one, but the best advice I would give you is to try (ie write a sample script, use sipp to launch tests on a long period, and then notice if it leaks... ).
Regards,
Gled Le 11/07/2010 06:05, D Al a écrit :
The Wiki and comments on this list talk highly of Lua as the "preferred" language to use with FS, although JavaScript seems to be very active.
The Wiki also mentions a serious memory leak when using the LUASQL. Is that still the case? And if so, is there a way to use LUA and access a MYSQL database that makes sense?
Thanks
_______________________________________________ FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
D Al
-
Tristan Mahé