VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
chris at fowler.cc Guest
|
Posted: Mon Mar 16, 2009 4:47 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
Hi,
I’ve been seeing an issue where FreeSWITCH’s CPU and memory utilization
climb over time; a restart of FS clears up the problem.
See graphs for the past week. http://cfowl.postinbox.com/fs.jpg
Observed on the Release Candidate, and then upgraded to the current
trunk a couple of times. Currently running version “FreeSWITCH Version
1.0.trunk (12604)”.
This is seen both when FS is being used (~200 calls/day, and over the
weekend when ~5 calls/day).
How can I best debug this?
Thanks, Chris.
_______________________________________________
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 |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Mar 16, 2009 4:54 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
Can you update to SVN trunk as of now?
/b
On Mar 16, 2009, at 3:19 PM, Chris Fowler wrote:
Quote: | Hi,
I’ve been seeing an issue where FreeSWITCH’s CPU and memory utilization
climb over time; a restart of FS clears up the problem.
See graphs for the past week. http://cfowl.postinbox.com/fs.jpg
Observed on the Release Candidate, and then upgraded to the current
trunk a couple of times. Currently running version “FreeSWITCH Version
1.0.trunk (12604)”.
This is seen both when FS is being used (~200 calls/day, and over the
weekend when ~5 calls/day).
How can I best debug this?
Thanks, Chris. |
|
|
Back to top |
|
|
jaybinks at gmail.com Guest
|
Posted: Mon Mar 16, 2009 5:36 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
what happens in your dialplan ?
is is possible that you execute a script on each call, thats not being exited ?
Jay
On Tue, Mar 17, 2009 at 6:19 AM, Chris Fowler <chris@fowler.cc> wrote:
--
Sincerely
Jay |
|
Back to top |
|
|
chris at fowler.cc Guest
|
Posted: Mon Mar 16, 2009 5:49 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
Quote: | Quote: | Jay : what happens in your dialplan ?
|
| Nothing special; no external script execution just default pattern
matching to route to extensions (per the stock config).
Quote: | Quote: | Brian: Can you update to SVN trunk as of now?
|
| Yup, I will pull the trunk and report back in 24 hours.
Chris.
_______________________________________________
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 |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Mar 16, 2009 5:55 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
Happen to use voicemail a lot? ivr.conf.xml?
/b
On Mar 16, 2009, at 5:42 PM, Chris Fowler wrote:
Quote: | Quote: | Quote: | Jay : what happens in your dialplan ?
|
| Nothing special; no external script execution just default pattern
matching to route to extensions (per the stock config).
Quote: | Quote: | Brian: Can you update to SVN trunk as of now?
|
| Yup, I will pull the trunk and report back in 24 hours.
Chris.
|
_______________________________________________
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 |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Mar 16, 2009 5:57 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
nothing special is a bit vague.
clearly something you are doing makes a difference.
Perhaps you can explain any custom extensions you have or what you are doing a little better?
install valgrind and run it for a while
valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /path/to/freeswitch -vg
then send us vg.log
On Mon, Mar 16, 2009 at 5:42 PM, Chris Fowler <chris@fowler.cc> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
chris at fowler.cc Guest
|
Posted: Mon Mar 16, 2009 11:11 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
Quote: | Quote: | Brian: Can you update to SVN trunk as of now?
|
| I updated - version reports: FreeSWITCH Version 1.0.trunk (12631)
Only difference I note with this build is that upon "shutdown" FS now
SegFaults. The mem/cpu usage continues to slowly climb.
<snip>
2009-03-16 20:59:32 [CONSOLE] switch_loadable_module.c:1237
do_shutdown() Stopping: mod_spidermonkey
Segmentation fault (core dumped)
Quote: | Quote: | Anthony - nothing special is a bit vague.
|
| I modified the dial plan to accept extension in the 1000-1029 range
Added DialByLast name using directory.lua (from the wiki)
Modified the ivr config to play company specific greetings
Voicemail is used a few times per day
freeswitch@ip-10-250-155-18> sofia status
API CALL [sofia(status)] output:
Name Type
Data State
=================================================================================================
internal profile
sip:mod_sofia@xxx.xxx.xxx.xx:5060 RUNNING (0)
external profile
sip:mod_sofia@xxx.xxx.xxx.xx:5080 RUNNING (0)
sip.flowroute.com gateway sip:xxxxxx@sip.flowroute.com
REGED
inphonex gateway sip:xxxxx@sip.inphonex.com
REGED
callwithus-did-xxxxxxxxxx gateway
sip:xxxxxxx@east.callwithus.com REGED
callwithus-did-xxxxxxxxxx gateway
sip:xxxxxxx@east.callwithus.com REGED
callwithus-did-xxxxxxxxxx gateway
sip:xxxxxxx@east.callwithus.com REGED
default alias
internal ALIASED
nat alias
external ALIASED
xxxxx.bbbb.aaa alias internal
ALIASED
outbound alias
external ALIASED
=================================================================================================
Quote: | Quote: | Anthony - valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /path/to/freeswitch -vg
|
|
Nothing got logged, here's the output. Did I invoke valgrind
incorrectly?
==32545== Memcheck, a memory error detector.
==32545== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et
al.
==32545== Using LibVEX rev 1658, a library for dynamic binary
translation.
==32545== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==32545== Using valgrind-3.2.1, a dynamic binary instrumentation
framework.
==32545== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et
al.
==32545== For more details, rerun with: -v
==32545==
==32545== My PID = 32545, parent PID = 32511. Prog and args are:
==32545== /usr/local/freeswitch/bin/freeswitch
==32545== -vg
==32545==
_______________________________________________
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 |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Mar 16, 2009 11:17 pm Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
Tip: ulimit -s 240, or freeswitch fork and execv out from under
valgrind.
/b
On Mar 16, 2009, at 11:01 PM, Chris Fowler wrote:
Quote: |
Quote: | Quote: | Anthony - valgrind --tool=memcheck --log-file=vg.log --leak-
check=full --leak-resolution=high --show-reachable=yes /path/to/
freeswitch -vg
|
|
Nothing got logged, here's the output. Did I invoke valgrind
incorrectly?
==32545== Memcheck, a memory error detector.
==32545== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et
al.
==32545== Using LibVEX rev 1658, a library for dynamic binary
translation.
==32545== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==32545== Using valgrind-3.2.1, a dynamic binary instrumentation
framework.
==32545== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et
al.
==32545== For more details, rerun with: -v
==32545==
==32545== My PID = 32545, parent PID = 32511. Prog and args are:
==32545== /usr/local/freeswitch/bin/freeswitch
==32545== -vg
==32545==
|
_______________________________________________
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 |
|
Back to top |
|
|
chris at fowler.cc Guest
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Mar 17, 2009 11:06 am Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
You're not leaking... I wouldn't call 737 bytes a leak.
/b
On Mar 17, 2009, at 10:49 AM, Chris Fowler wrote:
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Tue Mar 17, 2009 11:14 am Post subject: [Freeswitch-users] Possible memory / cpu leak |
|
|
The crash on shutdown was an issue in mod_spidermonkey that was accidentally added
if you update again it's gone.
please run the valgrind command again then make several calls that fall in line with your normal usage pattern
so the program can get an accurate trace of the memory usage.
On Tue, Mar 17, 2009 at 10:49 AM, Chris Fowler <chris@fowler.cc> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|