[Freeswitch-dev] [BULK] Re: [BULK] Re: [BULK] Re: Memory Leak? - FreeSWITCH Version 1.0.4pre5
Ken Rice
krice at freeswitch.org
Sat Apr 25 19:06:27 PDT 2009
Just to be clear on this... FreeSWITCH pools memory. This is done for
performance reasons, once memory is allocated, its not nessecarily free()¹d
when a call dies. It is normal for the box to increase in memory usage and
then level off at some point... example: its not unusual to see a very busy
box during the daytime using 2G of ram, then at night use that same 2G of
ram since FS will recycle it later. This is actually a good thing since we
arent calling malloc() all the time... You can use the fsctl reclaim_mem
command ona busy box to get fs to go thru and free() some of that memory
but don¹t expect it to free it all as it will keep some around.
There are also session limits, sps limits, and in sofia limits to concurrent
dialogs, this settings are there you help you control how much traffic the
box will handle and thus either limit the resources it will use or keep it
from melting down on itself
K
From: Charles Boening <charlieb at cot.net>
Reply-To: "freeswitch-dev at lists.freeswitch.org"
<freeswitch-dev at lists.freeswitch.org>
Date: Sat, 25 Apr 2009 18:09:56 -0700
To: "'freeswitch-dev at lists.freeswitch.org'"
<freeswitch-dev at lists.freeswitch.org>
Subject: Re: [Freeswitch-dev] [BULK] Re: [BULK] Re: [BULK] Re: Memory Leak?
- FreeSWITCH Version 1.0.4pre5
That¹s good to know. Thank you again for the rapid responses and such. It
is greatly appreciated. :)
Charlie
From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony
Minessale
Sent: Saturday, April 25, 2009 4:14 PM
To: freeswitch-dev at lists.freeswitch.org
Subject: [BULK] Re: [Freeswitch-dev] [BULK] Re: [BULK] Re: Memory Leak? -
FreeSWITCH Version 1.0.4pre5
Importance: Low
it may for some time but it will eventually level off
anywhere from 20 to 700 megs is within normal parameters even on an idle
box.
On Sat, Apr 25, 2009 at 3:14 PM, Charles Boening <charlieb at cot.net> wrote:
I¹m sure the email app uses way more. It¹s Outlook after all. :)
So what you¹re saying is the FS will continue to consume memory for future
use even if nothing is going on?
Thanks for the information and taking the time to address my concerns.
Charlie
From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony
Minessale
Sent: Saturday, April 25, 2009 5:10 AM
To: freeswitch-dev at lists.freeswitch.org
Subject: [BULK] Re: [Freeswitch-dev] [BULK] Re: Memory Leak? - FreeSWITCH
Version 1.0.4pre5
Importance: Low
freeswitch uses memory pooling and so do some of it's individual components.
you can expect it to build up to several hundered megs of ram and save it
for reuse.
I bet the email app you are using to write this email is using more ram than
that chart depicts.
On Sat, Apr 25, 2009 at 2:31 AM, Charles Boening <charlieb at cot.net> wrote:
I don¹t see any core files. However, I talked with one of my other guys
this evening and found out he put in a cron job that was supposed to kill FS
and restart it every day at 3am. I think there was something wrong with how
he did it and FS wasn¹t restarting properly. I¹ve removed that job and
we¹ll see how long we last. I¹m still concerned about the ever increasing
memory usage though. I would think that if it doesn¹t level off, eventually
something has to give.
Here¹s what I have for a memory usage graph so far. As you can see, memory
usage is constantly climbing. I wouldn¹t think this would be normal. Since
I updated to 1.0.4pre5, I¹ve made a couple test calls to make sure the IVR
was working correctly. Other than that, the system hasn¹t been used since
the update about 11 hours ago.
From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony
Minessale
Sent: Friday, April 24, 2009 5:48 PM
To: freeswitch-dev at lists.freeswitch.org
Subject: [BULK] Re: [Freeswitch-dev] Memory Leak? - FreeSWITCH Version
1.0.4pre5
Importance: Low
if it already crashed, you would already have core files now you could
trace.
did you witness any crash or find any core files?
mention to the boss if he emails consulting at freeswitch.org he could purchase
a support contract from
FreeSWITCH Solutions and we can make sure his box is stable.
On Fri, Apr 24, 2009 at 7:16 PM, Charles Boening <charlieb at cot.net> wrote:
Brian,
Sounds good. I'll keep an eye on it.
I appreciate the tips. I'll see about joining the IRC channel. :)
Charlie
-----Original Message-----
From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Brian West
Sent: Friday, April 24, 2009 4:45 PM
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] Memory Leak? - FreeSWITCH Version 1.0.4pre5
If you can please refer to the wiki for debugging procedures... I also
recommend you join us on IRC. We run conference.freeswitch.org
<http://conference.freeswitch.org> with
many participants in a conference all day long without any problems
and we usually keep it up to date every few days when we remember to
do so. We do not see any memory leaks.
http://wiki.freeswitch.org/wiki/Reporting_Bugs
If freeswitch exits like you say it'll have a core file which you can
run gdb on and it will tell us why it crashed usually.
/b
On Apr 24, 2009, at 6:36 PM, Charles Boening wrote:
> Brian,
>
> Thanks for the quick reply.
>
> I'm using FS for a conference server. We have just one conference
> room for internal use. It is connected via a SIP registration to
> our MetaSwitch. That registration allows multiple calls on the same
> registration. I could do a SIP trunk but this was quick and easy to
> setup.
>
> I'm concerned that FS quit unexpectedly a few time (pre4 not pre5)
> and that's how I got to poking around. Sounds like maybe I'm being
> a little alarmist. It's just harsh when the boss asks why the
> conference room isn't working. :)
>
> I'll see if I can get something setup to monitor memory usage over
> time. I'm just concerned that over time memory will keep increasing
> and increasing and that's what caused the process to crash.
>
> What would you suggest to try and track down why the FS process
> would suddenly stop working (not in process list even)?
>
> Charlie
Brian West
brian at freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090425/815946cd/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 14707 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090425/815946cd/attachment-0001.png
More information about the Freeswitch-dev
mailing list