Diagnosing FreeSWITCH eating more and more memory
With yesterday's trunk and also a release from 2 weeks ago, I noticed that my freeswitch process as it ran was eating up more and more memory. At the end of the day it was using 75% of the sever's memory (About 12 gigs). It starts out taking a small amount of memory, and then throughout the day it slowly takes more and more. Is this normal? I'm using several lua ivr scripts...and have about 600-900 channels. Whats the best way to go about tracking down the cause? Thanks. --matt
Depends on what you're doing ... or not doing... /b On Jun 19, 2009, at 3:20 PM, Matthew Fong wrote:
With yesterday's trunk and also a release from 2 weeks ago, I noticed that my freeswitch process as it ran was eating up more and more memory. At the end of the day it was using 75% of the sever's memory (About 12 gigs). It starts out taking a small amount of memory, and then throughout the day it slowly takes more and more. Is this normal? I'm using several lua ivr scripts...and have about 600-900 channels. Whats the best way to go about tracking down the cause? Thanks.
--matt
On another email thread Tony mentioned using "top -H" and then doing a gcore to locate the process(es) that are sucking up all the resources. Have you been down that path already? -MC On Fri, Jun 19, 2009 at 3:28 PM, Brian West <brian@freeswitch.org> wrote:
Depends on what you're doing ... or not doing...
/b
On Jun 19, 2009, at 3:20 PM, Matthew Fong wrote:
With yesterday's trunk and also a release from 2 weeks ago, I noticed that my freeswitch process as it ran was eating up more and more memory. At the end of the day it was using 75% of the sever's memory (About 12 gigs). It starts out taking a small amount of memory, and then throughout the day it slowly takes more and more. Is this normal? I'm using several lua ivr scripts...and have about 600-900 channels. Whats the best way to go about tracking down the cause? Thanks.
--matt
_______________________________________________ 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
are you connecting to a db with the lua? On Fri, Jun 19, 2009 at 3:20 PM, Matthew Fong <mattdfong@gmail.com> wrote:
With yesterday's trunk and also a release from 2 weeks ago, I noticed that my freeswitch process as it ran was eating up more and more memory. At the end of the day it was using 75% of the sever's memory (About 12 gigs). It starts out taking a small amount of memory, and then throughout the day it slowly takes more and more. Is this normal? I'm using several lua ivr scripts...and have about 600-900 channels. Whats the best way to go about tracking down the cause? Thanks. --matt
_______________________________________________ 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/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
some lua event listeners are connecting to mysql with lua..but the connection is created once, and kept open the lua ivr's do *not *connect to any database. top -H seems to show an even distribution of of cpu and memory usage amongst freeswitch threads. Nothing seems out of the ordinary with a specific thread. --matt On Fri, Jun 19, 2009 at 1:38 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
are you connecting to a db with the lua?
On Fri, Jun 19, 2009 at 3:20 PM, Matthew Fong <mattdfong@gmail.com> wrote:
With yesterday's trunk and also a release from 2 weeks ago, I noticed that my freeswitch process as it ran was eating up more and more memory. At the end of the day it was using 75% of the sever's memory (About 12 gigs). It starts out taking a small amount of memory, and then throughout the day it slowly takes more and more. Is this normal? I'm using several lua ivr scripts...and have about 600-900 channels. Whats the best way to go about tracking down the cause? Thanks. --matt
_______________________________________________ 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/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
Can you pastebin your script and your dialplan? There might be some clue there.. On Fri, Jun 19, 2009 at 3:53 PM, Matthew Fong <mattdfong@gmail.com> wrote:
some lua event listeners are connecting to mysql with lua..but the connection is created once, and kept open the lua ivr's do *not *connect to any database.
top -H seems to show an even distribution of of cpu and memory usage amongst freeswitch threads. Nothing seems out of the ordinary with a specific thread.
--matt On Fri, Jun 19, 2009 at 1:38 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
are you connecting to a db with the lua?
On Fri, Jun 19, 2009 at 3:20 PM, Matthew Fong <mattdfong@gmail.com>wrote:
With yesterday's trunk and also a release from 2 weeks ago, I noticed that my freeswitch process as it ran was eating up more and more memory. At the end of the day it was using 75% of the sever's memory (About 12 gigs). It starts out taking a small amount of memory, and then throughout the day it slowly takes more and more. Is this normal? I'm using several lua ivr scripts...and have about 600-900 channels. Whats the best way to go about tracking down the cause? Thanks. --matt
_______________________________________________ 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/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
try removing certian elements of you setup to narrrow it down one at a time. remove the lua + sql, the ivr scripts etc and see if you can pinpoint your problem it's amost for sure going to be in lua and probably some plugin for it. On Fri, Jun 19, 2009 at 3:53 PM, Matthew Fong <mattdfong@gmail.com> wrote:
some lua event listeners are connecting to mysql with lua..but the connection is created once, and kept open the lua ivr's do *not *connect to any database.
top -H seems to show an even distribution of of cpu and memory usage amongst freeswitch threads. Nothing seems out of the ordinary with a specific thread.
--matt On Fri, Jun 19, 2009 at 1:38 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
are you connecting to a db with the lua?
On Fri, Jun 19, 2009 at 3:20 PM, Matthew Fong <mattdfong@gmail.com>wrote:
With yesterday's trunk and also a release from 2 weeks ago, I noticed that my freeswitch process as it ran was eating up more and more memory. At the end of the day it was using 75% of the sever's memory (About 12 gigs). It starts out taking a small amount of memory, and then throughout the day it slowly takes more and more. Is this normal? I'm using several lua ivr scripts...and have about 600-900 channels. Whats the best way to go about tracking down the cause? Thanks. --matt
_______________________________________________ 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/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (4)
-
Anthony Minessale
-
Brian West
-
Matthew Fong
-
Michael Collins