Hi We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete
Do you use luasql with mysql driver? That could be the cause of the leak. On Monday 14 March 2011, Pete Kelly wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
Yes we do - what prompts you to suggest that could be the source of the leak? On 14 March 2011 11:50, Sergey Okhapkin <sos@sokhapkin.dyndns.org> wrote:
Do you use luasql with mysql driver? That could be the cause of the leak.
On Monday 14 March 2011, Pete Kelly wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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
Use odbc driver instead of mysql driver to avoid the leak. On Monday 14 March 2011, Pete Kelly wrote:
Yes we do - what prompts you to suggest that could be the source of the leak?
On 14 March 2011 11:50, Sergey Okhapkin <sos@sokhapkin.dyndns.org> wrote:
Do you use luasql with mysql driver? That could be the cause of the leak.
On Monday 14 March 2011, Pete Kelly wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch
increases,
eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances
of
the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained
any
fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a
memory
leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git. -Steve On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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-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
Hi, I've never seen memleaks on luasql using the following code: Feel free to use it and modify/improve ;) ----------------------------------------------- mysql.lua ----------------------------------------------- require 'luasql.mysql' DB = {} DB.__index = DB function DB.create() local db = {} setmetatable(db,DB) db.env = assert( luasql.mysql() ) db.con = assert( db.env:connect('DB','USER','PASSWORD','HOST') ) return db end function DB:query(query) local q,r = self.con:execute(query) if q == nil then return nil else return q end end function DB:fetch(cur) if (cur ~= nil) then return cur:fetch({},"a"); else return nil; end end function DB:close() self.con:close() self.env:close() end ----------------------------------------------- /mysql.lua ----------------------------------------------- Exemple usage ( in a global do ... end block to ensure no data is global and everything is destroyed ): local db = DB.create(); local r = db:query("SELECT * FROM test"); local f = db:fetch(r); db:close(); Le 14/03/2011 15:28, Pete Kelly a écrit :
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com <mailto:steveayre@gmail.com>> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com <mailto:pkelly@gmail.com>> wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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-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
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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-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-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
This may not be related but I have had a memory leak since last year that requires a restart every night. About 2M an hour on my OS X system. On Mar 14, 2011, at 8:27 AM, Steven Ayre wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh
It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching.
-Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote: If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote: Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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-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-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-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
Have you tried upgrading to the latest Git? -Steve On 14 March 2011 16:18, Mario G <mario_fs@mgtech.com> wrote:
This may not be related but I have had a memory leak since last year that requires a restart every night. About 2M an hour on my OS X system.
On Mar 14, 2011, at 8:27 AM, Steven Ayre wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh
It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching.
-Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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-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-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-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-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
Been updating gits since last year and even today. This is a known open problem in Jira. It is related to internal registrations, the more phone/faster frequency the faster the leak. It is low priority right now since I am having other major FS problems due to a router change. Thanks for asking! Mario G On Mar 14, 2011, at 9:30 AM, Steven Ayre wrote:
Have you tried upgrading to the latest Git?
-Steve
On 14 March 2011 16:18, Mario G <mario_fs@mgtech.com> wrote: This may not be related but I have had a memory leak since last year that requires a restart every night. About 2M an hour on my OS X system.
On Mar 14, 2011, at 8:27 AM, Steven Ayre wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh
It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching.
-Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote: If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote: Hi
We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application.
However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue.
We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues.
Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit?
Any advice on where to look/debug next would be appreciated.
Thanks
Pete
_______________________________________________ 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-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-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-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-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-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
its also Mac specific and reported to sofia devs. On Mon, Mar 14, 2011 at 11:38 AM, Mario G <mario_fs@mgtech.com> wrote:
Been updating gits since last year and even today. This is a known open problem in Jira. It is related to internal registrations, the more phone/faster frequency the faster the leak. It is low priority right now since I am having other major FS problems due to a router change. Thanks for asking! Mario G
On Mar 14, 2011, at 9:30 AM, Steven Ayre wrote:
Have you tried upgrading to the latest Git? -Steve
On 14 March 2011 16:18, Mario G <mario_fs@mgtech.com> wrote:
This may not be related but I have had a memory leak since last year that requires a restart every night. About 2M an hour on my OS X system. On Mar 14, 2011, at 8:27 AM, Steven Ayre wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete
_______________________________________________ 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-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-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-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-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-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-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 FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
By the way - I just noticed that the Sofia devs released version 1.12.11 about a week ago, but I guess you already knew that :) ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Anthony Minessale [anthony.minessale@gmail.com] Skickat: den 14 mars 2011 17:56 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] Memory leak its also Mac specific and reported to sofia devs. On Mon, Mar 14, 2011 at 11:38 AM, Mario G <mario_fs@mgtech.com> wrote:
Been updating gits since last year and even today. This is a known open problem in Jira. It is related to internal registrations, the more phone/faster frequency the faster the leak. It is low priority right now since I am having other major FS problems due to a router change. Thanks for asking! Mario G
On Mar 14, 2011, at 9:30 AM, Steven Ayre wrote:
Have you tried upgrading to the latest Git? -Steve
On 14 March 2011 16:18, Mario G <mario_fs@mgtech.com> wrote:
This may not be related but I have had a memory leak since last year that requires a restart every night. About 2M an hour on my OS X system. On Mar 14, 2011, at 8:27 AM, Steven Ayre wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete
_______________________________________________ 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-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-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-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-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-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-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 FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _______________________________________________ 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 !DSPAM:4d7e4a9b32767617011118!
yes, and the release notes are a who's who of FreeSWITCH contributors and FS JIRA bug references. http://sofia-sip.sourceforge.net/relnotes/relnotes-sofia-sip-1.12.11.txt On Mon, Mar 14, 2011 at 12:35 PM, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
By the way - I just noticed that the Sofia devs released version 1.12.11 about a week ago, but I guess you already knew that :) ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Anthony Minessale [anthony.minessale@gmail.com] Skickat: den 14 mars 2011 17:56 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] Memory leak
its also Mac specific and reported to sofia devs.
On Mon, Mar 14, 2011 at 11:38 AM, Mario G <mario_fs@mgtech.com> wrote:
Been updating gits since last year and even today. This is a known open problem in Jira. It is related to internal registrations, the more phone/faster frequency the faster the leak. It is low priority right now since I am having other major FS problems due to a router change. Thanks for asking! Mario G
On Mar 14, 2011, at 9:30 AM, Steven Ayre wrote:
Have you tried upgrading to the latest Git? -Steve
On 14 March 2011 16:18, Mario G <mario_fs@mgtech.com> wrote:
This may not be related but I have had a memory leak since last year that requires a restart every night. About 2M an hour on my OS X system. On Mar 14, 2011, at 8:27 AM, Steven Ayre wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete
_______________________________________________ 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-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-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-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-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-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-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
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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
!DSPAM:4d7e4a9b32767617011118!
_______________________________________________ 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 FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Which Jira issue is that - I couldn't find it when searching Jira? /Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Mario G [mario_fs@mgtech.com] Skickat: den 14 mars 2011 17:38 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] Memory leak Been updating gits since last year and even today. This is a known open problem in Jira. It is related to internal registrations, the more phone/faster frequency the faster the leak. It is low priority right now since I am having other major FS problems due to a router change. Thanks for asking! Mario G On Mar 14, 2011, at 9:30 AM, Steven Ayre wrote: Have you tried upgrading to the latest Git? -Steve On 14 March 2011 16:18, Mario G <mario_fs@mgtech.com<mailto:mario_fs@mgtech.com>> wrote: This may not be related but I have had a memory leak since last year that requires a restart every night. About 2M an hour on my OS X system. On Mar 14, 2011, at 8:27 AM, Steven Ayre wrote: Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com<mailto:pkelly@gmail.com>> wrote: On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com<mailto:steveayre@gmail.com>> wrote: If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git. No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver. -Steve On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com<mailto:pkelly@gmail.com>> wrote: Hi We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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 !DSPAM:4d7e458932761594220015!
also make sure to use the _r version of any libs you use such as myodbc or mysqlclient look in /etc/odbcinst.ini and chances are its not the _r one # Driver from the MyODBC package # Setup from the unixODBC package [MySQL] Description = ODBC for MySQL Driver = /usr/lib64/libmyodbc3.so Setup = /usr/lib64/libodbcmyS.so FileUsage = 1 /usr/lib64/libmyodbc3.so needs to be /usr/lib64/libmyodbc3_r.so On Mon, Mar 14, 2011 at 10:27 AM, Steven Ayre <steveayre@gmail.com> wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks ago which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete
_______________________________________________ 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-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-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-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 FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I have gone with Freeswitch's inbuilt odbc implementation, and I have the _r libs in use for the drivers. Fingers crossed it helps matters, should know in a few days. On 14 March 2011 16:25, Anthony Minessale <anthony.minessale@gmail.com>wrote:
also make sure to use the _r version of any libs you use such as myodbc or mysqlclient
look in /etc/odbcinst.ini and chances are its not the _r one
# Driver from the MyODBC package # Setup from the unixODBC package [MySQL] Description = ODBC for MySQL Driver = /usr/lib64/libmyodbc3.so Setup = /usr/lib64/libodbcmyS.so FileUsage = 1
/usr/lib64/libmyodbc3.so needs to be /usr/lib64/libmyodbc3_r.so
On Mon, Mar 14, 2011 at 10:27 AM, Steven Ayre <steveayre@gmail.com> wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks
ago
which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi We are using Freeswitch (from git sources) in a production environment to handle an IVR system using a simple set of dialplans and lua
scripts.
OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete
_______________________________________________ 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-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-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-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
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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
Yep that seems to have worked. To recap I was using the luasql.mysql library, and have moved to using freeswitch.Dbh using the mysql "_r" thread safe odbc driver with unixodbc. Thanks everyone for your help. Pete On 15 March 2011 14:30, Pete Kelly <pkelly@gmail.com> wrote:
I have gone with Freeswitch's inbuilt odbc implementation, and I have the _r libs in use for the drivers.
Fingers crossed it helps matters, should know in a few days.
On 14 March 2011 16:25, Anthony Minessale <anthony.minessale@gmail.com>wrote:
also make sure to use the _r version of any libs you use such as myodbc or mysqlclient
look in /etc/odbcinst.ini and chances are its not the _r one
# Driver from the MyODBC package # Setup from the unixODBC package [MySQL] Description = ODBC for MySQL Driver = /usr/lib64/libmyodbc3.so Setup = /usr/lib64/libodbcmyS.so FileUsage = 1
/usr/lib64/libmyodbc3.so needs to be /usr/lib64/libmyodbc3_r.so
On Mon, Mar 14, 2011 at 10:27 AM, Steven Ayre <steveayre@gmail.com> wrote:
Try using the freeswitch.Dbh interface: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh It gives you a ODBC interface through freeswitch's odbc support, plus you get the benefit of the connection caching. -Steve
On 14 March 2011 14:28, Pete Kelly <pkelly@gmail.com> wrote:
On 14 March 2011 13:16, Steven Ayre <steveayre@gmail.com> wrote:
If you use mod_lcr, we were getting a memory leak in that a few weeks
ago
which is fixed in the latest git.
No we are not. I am going to try strengthening up the code which closes the DB connections. If that fails then I will compile and try the ODBC driver.
-Steve
On 14 March 2011 09:30, Pete Kelly <pkelly@gmail.com> wrote:
Hi We are using Freeswitch (from git sources) in a production
environment
to handle an IVR system using a simple set of dialplans and lua scripts. OpenSIPS 1.6 and mysql are also installed and running as part of the same IVR application. However over time (approx 1 week) the memory usage of Freeswitch increases, eventually creeping into swap space forcing us to restart Freeswitch. The IVR handles approx 40 concurrent calls constantly, and we have instances of the IVR running on a 32bit Etch and 64bit Lenny boxes - both exhibit the same issue. We have also tried the Sangoma freeswitch branch in case that contained any fixes, however we see the same issues. Can anybody advise if this is a known issue with Freeswitch? Is it a memory leak or is it possible to limit the amount of memory Freeswitch will use, forcing it to garbage collect when it reaches the limit? Any advice on where to look/debug next would be appreciated. Thanks Pete
_______________________________________________ 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-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-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-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
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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 (7)
-
Anthony Minessale
-
Mario G
-
Pete Kelly
-
Peter Olsson
-
Sergey Okhapkin
-
Steven Ayre
-
Tristan Mahé