[Freeswitch-users] upadte FS (make current)

Mitch Capper mitch.capper at gmail.com
Wed Aug 8 02:44:30 MSD 2012


Linux memory can be a bit tricky to always track well the application
ATOP allows you sort by memory usage and is pretty good.   Keep in
mind however you may see the free memory going down on the system but
really its just used for file caching or what have you so its not
really lost or not available.  Linux doesn't always do an easy job of
showing memory usage.

~Mitch

On Tue, Aug 7, 2012 at 12:51 PM, Peter Olsson
<peter.olsson at visionutveckling.se> wrote:
> Why do you even think FS leaks memory? How much memory does it use?
>
> Anyway, to look for memory leaks, check out this:
> http://wiki.freeswitch.org/wiki/Reporting_Bugs#Collection_Information_With_Valgrind_.28Linux.2FUnix.29
>
> /Peter
>
> ________________________________________
> Från: freeswitch-users-bounces at lists.freeswitch.org [freeswitch-users-bounces at lists.freeswitch.org] f&#246;r Miha [miha at softnet.si]
> Skickat: den 7 augusti 2012 21:22
> Till: FreeSWITCH Users Help
> Ämne: Re: [Freeswitch-users] upadte FS (make current)
>
> HI,
>
> just one more information. What is the best way to see what
> leaks memory and to be sure that FS does not leak it?
>
> If I look at the top command I can see that the free memory
> is slowly dropping, but from ps aux I can see that FS
> consums 1.3% of memory (the same).
>
> Thanks!
>
> Miha
>
> Thanks!
>  MIha
>
> On Tue, 07 Aug 2012 12:21:30 +0200
>  Miha <miha at softnet.si> wrote:
>> Hi Peter,
>>
>> fsctl reclaim_mem this will not harm any call and etc?
>>
>> So if freeswitch does not leak memory what should I see
>> in top (memory will not drop?)?
>>
>> Thanks!
>> Miha
>>
>>
>>
>> On 8/7/2012 11:48 AM, Peter Olsson wrote:
>> > It's always hard to say what is a memory leak and
>> what's not. FS uses memory pools internally, which
>> sometime might make it look like it leaks memory, but in
>> the end FS will reuse that memory. You can also run
>> "fsctl reclaim_mem" in the console or fs_cli, and see if
>> that makes the memory usage drop.
>> >
>> > /Peter
>> >
>> > -----Ursprungligt meddelande-----
>> > Fr?n: freeswitch-users-bounces at lists.freeswitch.org
>> [mailto:freeswitch-users-bounces at lists.freeswitch.org]
>> För Miha
>> > Skickat: den 7 augusti 2012 11:14
>> > Till: FreeSWITCH Users Help
>> > Ämne: Re: [Freeswitch-users] upadte FS (make current)
>> >
>> > On 8/7/2012 10:54 AM, Peter Olsson wrote:
>> >> Usually it's no problem. However, I always recommend
>> to have a test
>> >> server to run basic tests before going into
>> production. There have
>> >> been a couple of memory leaks fixed, but I think that
>> was before your
>> >> current version - but I don't remember all the commits
>> from my head..
>> >> :)
>> >>
>> >> I would also suggest to read through the git commit
>> log, to get an idea of what has been done.
>> >>
>> >> /Peter
>> >>
>> >>
>> >> -----Ursprungligt meddelande-----
>> >> Fr?n: freeswitch-users-bounces at lists.freeswitch.org
>> >> [mailto:freeswitch-users-bounces at lists.freeswitch.org]
>> För Miha
>> >> Skickat: den 7 augusti 2012 10:37
>> >> Till: FreeSWITCH Users Help
>> >> Ämne: [Freeswitch-users] upadte FS (make current)
>> >>
>> >> Hi,
>> >>
>> >> I am running on production server FS (runs ok). I
>> would like to upgrade it to latest git.
>> >> Can I expect any problems? I not using any special
>> module (just mod_rad_auth, for cdr mod_xml_cdr).
>> >>
>> >> Is it better to first test everything on test server
>> and than make upgrade?
>> >>
>> >> My FS is now up for 13 days. I am looking at memory
>> for a few days and noticing that free memory is shrinking
>> (slowly). Was there any problem with memory leak? :
>> >>
>> >> top - 09:46:46 up 13 days, 12:32,  3 users,  load
>> average: 0.00, 0.04, 0.05
>> >> Tasks: 159 total,   1 running, 158 sleeping,   0
>> stopped,   0 zombie
>> >> Cpu(s):  0.6%us,  0.4%sy,  0.0%ni, 99.0%id,  0.0%wa,
>>  0.0%hi, 0.0%si, 0.0%st
>> >> Mem:   4046636k total,  3356340k used,   690296k free,
>>   357296k buffers
>> >> Swap:  6094840k total,        0k used,  6094840k free,
>>  2629280k cached
>> >>
>> >> My version: FreeSWITCH Version
>> >> 1.2.0-rc2+git~20120721T151827Z~b2e28d68b5
>> >> (1.2.0-rc2; git at commit b2e28d68b5 on Sat, 21 Jul
>> 2012 15:18:27 Z)
>> >>
>> >> Thanks!
>> >>
>> >> Miha
>> >>
>> >>
>>
> ______________________________________________________________________
>> >> ___ Professional FreeSWITCH Consulting Services:
>> >> consulting at freeswitch.org
>> >> http://www.freeswitchsolutions.com
>> >>
>> >> FreeSWITCH-powered IP PBX: The CudaTel Communication
>> Server
>> >> 
>> >>
>> >> Official FreeSWITCH Sites
>> >> http://www.freeswitch.org
>> >> http://wiki.freeswitch.org
>> >> http://www.cluecon.com
>> >>
>> >> Join Us At ClueCon - Aug 7-9, 2012
>> >>
>> >> FreeSWITCH-users mailing list
>> >> FreeSWITCH-users at lists.freeswitch.org
>> >>
>>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >>
>>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use
>> >> rs
>> >> http://www.freeswitch.org
>> >>
>> >>
>> >>
>> >>
>> >>
>>
> ______________________________________________________________________
>> >> ___ Professional FreeSWITCH Consulting Services:
>> >> consulting at freeswitch.org
>> >> http://www.freeswitchsolutions.com
>> >>
>> >> FreeSWITCH-powered IP PBX: The CudaTel Communication
>> Server
>> >> 
>> >>
>> >> Official FreeSWITCH Sites
>> >> http://www.freeswitch.org
>> >> http://wiki.freeswitch.org
>> >> http://www.cluecon.com
>> >>
>> >> Join Us At ClueCon - Aug 7-9, 2012
>> >>
>> >> FreeSWITCH-users mailing list
>> >> FreeSWITCH-users at lists.freeswitch.org
>> >>
>>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >>
>>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use
>> >> rs
>> >> http://www.freeswitch.org
>> >>
>> > @Peter thanks for your quick answer:)
>> >
>> > I readed jira postes and noticed that this was befor my
>> git version (as you said).
>> > If there was leak problem (I do not know if it is, just
>> noticing that free memory is droping), would FS be stable
>> for 13 days or would this bug be present sooner (memory
>> leak)?
>> >
>> > regards,
>> > Miha
>> >
>> >
>> >
>>
> _________________________________________________________________________
>> > Professional FreeSWITCH Consulting Services:
>> > consulting at freeswitch.org
>> > http://www.freeswitchsolutions.com
>> >
>> > FreeSWITCH-powered IP PBX: The CudaTel Communication
>> Server 
>> >
>> > Official FreeSWITCH Sites
>> > http://www.freeswitch.org
>> > http://wiki.freeswitch.org
>> > http://www.cluecon.com
>> >
>> > Join Us At ClueCon - Aug 7-9, 2012
>> >
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at 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 at freeswitch.org
>> > http://www.freeswitchsolutions.com
>> >
>> > FreeSWITCH-powered IP PBX: The CudaTel Communication
>> Server
>> > 
>> >
>> > Official FreeSWITCH Sites
>> > http://www.freeswitch.org
>> > http://wiki.freeswitch.org
>> > http://www.cluecon.com
>> >
>> > Join Us At ClueCon - Aug 7-9, 2012
>> >
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication
>> Server
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> Join Us At ClueCon - Aug 7-9, 2012
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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:5021693632761271914539!
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list