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
Potential bugs are always reported to jira not the mailing list. From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Jai Rangi Sent: Tuesday, November 14, 2017 3:58 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] Mod LUA memory leak 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
Hello Ken, Bug created in Jira. Seems there is small code change in mod_lua.cpp. I rebuild the module with older code and it has not crashed since then 15 hours. @Chad, Yes, I am using LuaSQL and my experience with odbc and luasql is quite opposite. With ODBC fresswitch crashes on slightly heave load. I have submitted few bug reports. Every time I was told FS creases due to ODBC crash/bug. I tested with latest code available for both. Changed all db queries to luasql and since then no crash. Have been using 1.6.9 and 1.6.13. *Jai Rangi* Cebod Technologies LLC dba DIDforSale/Cebod Telecom O 949-471-0102 | C 949-419-7634 <1-949-419-7634> | F 949-269-0449 / 949-232-1410 | jprangi@didforsale.com www.cebod.com | www.didforsale.com |2372 Morse Ave., Ste. 124, Irvine, CA 92614| On Tue, Nov 14, 2017 at 2:21 PM, Ken Rice <krice@freeswitch.org> wrote:
Potential bugs are always reported to jira not the mailing list.
*From:* FreeSWITCH-users [mailto:freeswitch-users- bounces@lists.freeswitch.org] *On Behalf Of *Jai Rangi *Sent:* Tuesday, November 14, 2017 3:58 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] Mod LUA memory leak
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Jai, I’ve run 1.6.15 on Debian Jessie using the freeswitch.Dbh/ODBC approach since March, without a single crash. Perhaps I haven’t put my servers under the kind of load needed to create the crash you’ve reported. Are you using LuaSQL/ODBC, or freeswitch.Dbh/ODBC? On Wed, Nov 15, 2017 at 7:56 AM, Jai Rangi <jprangi@didforsale.com> wrote:
Hello Ken, Bug created in Jira.
Seems there is small code change in mod_lua.cpp. I rebuild the module with older code and it has not crashed since then 15 hours.
@Chad, Yes, I am using LuaSQL and my experience with odbc and luasql is quite opposite. With ODBC fresswitch crashes on slightly heave load. I have submitted few bug reports. Every time I was told FS creases due to ODBC crash/bug. I tested with latest code available for both. Changed all db queries to luasql and since then no crash. Have been using 1.6.9 and 1.6.13.
*Jai Rangi* Cebod Technologies LLC dba DIDforSale/Cebod Telecom O 949-471-0102 | C 949-419-7634 <1-949-419-7634> | F 949-269-0449 / 949-232-1410 | jprangi@didforsale.com www.cebod.com | www.didforsale.com |2372 Morse Ave., Ste. 124, Irvine, CA 92614|
On Tue, Nov 14, 2017 at 2:21 PM, Ken Rice <krice@freeswitch.org> wrote:
Potential bugs are always reported to jira not the mailing list.
*From:* FreeSWITCH-users [mailto:freeswitch-users-bounc es@lists.freeswitch.org] *On Behalf Of *Jai Rangi *Sent:* Tuesday, November 14, 2017 3:58 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] Mod LUA memory leak
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Freeswitch dbh/odbc On Wed, Nov 15, 2017 at 9:05 AM Chad Phillips <chad@apartmentlines.com> wrote:
Jai,
I’ve run 1.6.15 on Debian Jessie using the freeswitch.Dbh/ODBC approach since March, without a single crash. Perhaps I haven’t put my servers under the kind of load needed to create the crash you’ve reported.
Are you using LuaSQL/ODBC, or freeswitch.Dbh/ODBC?
On Wed, Nov 15, 2017 at 7:56 AM, Jai Rangi <jprangi@didforsale.com> wrote:
Hello Ken, Bug created in Jira.
Seems there is small code change in mod_lua.cpp. I rebuild the module with older code and it has not crashed since then 15 hours.
@Chad, Yes, I am using LuaSQL and my experience with odbc and luasql is quite opposite. With ODBC fresswitch crashes on slightly heave load. I have submitted few bug reports. Every time I was told FS creases due to ODBC crash/bug. I tested with latest code available for both. Changed all db queries to luasql and since then no crash. Have been using 1.6.9 and 1.6.13.
*Jai Rangi* Cebod Technologies LLC dba DIDforSale/Cebod Telecom O 949-471-0102 | C 949-419-7634 <1-949-419-7634> | F 949-269-0449 / 949-232-1410 | jprangi@didforsale.com www.cebod.com | www.didforsale.com |2372 Morse Ave., Ste. 124, Irvine, CA 92614|
On Tue, Nov 14, 2017 at 2:21 PM, Ken Rice <krice@freeswitch.org> wrote:
Potential bugs are always reported to jira not the mailing list.
*From:* FreeSWITCH-users [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Jai Rangi *Sent:* Tuesday, November 14, 2017 3:58 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] Mod LUA memory leak
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
All this information you say here should be in the jira instead. On Wed, Nov 15, 2017 at 11:08 AM, Jai Rangi <jprangi@gmail.com> wrote:
Freeswitch dbh/odbc
On Wed, Nov 15, 2017 at 9:05 AM Chad Phillips <chad@apartmentlines.com> wrote:
Jai,
I’ve run 1.6.15 on Debian Jessie using the freeswitch.Dbh/ODBC approach since March, without a single crash. Perhaps I haven’t put my servers under the kind of load needed to create the crash you’ve reported.
Are you using LuaSQL/ODBC, or freeswitch.Dbh/ODBC?
On Wed, Nov 15, 2017 at 7:56 AM, Jai Rangi <jprangi@didforsale.com> wrote:
Hello Ken, Bug created in Jira.
Seems there is small code change in mod_lua.cpp. I rebuild the module with older code and it has not crashed since then 15 hours.
@Chad, Yes, I am using LuaSQL and my experience with odbc and luasql is quite opposite. With ODBC fresswitch crashes on slightly heave load. I have submitted few bug reports. Every time I was told FS creases due to ODBC crash/bug. I tested with latest code available for both. Changed all db queries to luasql and since then no crash. Have been using 1.6.9 and 1.6.13.
*Jai Rangi* Cebod Technologies LLC dba DIDforSale/Cebod Telecom O 949-471-0102 | C 949-419-7634 <1-949-419-7634> | F 949-269-0449 / 949-232-1410 | jprangi@didforsale.com www.cebod.com | www.didforsale.com |2372 Morse Ave., Ste. 124, Irvine, CA 92614|
On Tue, Nov 14, 2017 at 2:21 PM, Ken Rice <krice@freeswitch.org> wrote:
Potential bugs are always reported to jira not the mailing list.
*From:* FreeSWITCH-users [mailto:freeswitch-users- bounces@lists.freeswitch.org] *On Behalf Of *Jai Rangi *Sent:* Tuesday, November 14, 2017 3:58 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] Mod LUA memory leak
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ options/freeswitch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
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@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@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@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 (5)
-
Anthony Minessale
-
Chad Phillips
-
Jai Rangi
-
Jai Rangi
-
Ken Rice