[Freeswitch-users] Memory leak

Anthony Minessale anthony.minessale at gmail.com
Fri Dec 30 23:50:28 MSK 2016


It will surely give you a better picture if there is anything of concern.
Like I said before you are not outside normal memory footprints in what you
demonstrated.



On Fri, Dec 30, 2016 at 2:12 PM, Sergey Safarov <s.safarov at gmail.com> wrote:

> If I do call test using SIPP script (10 sec each call, PCMA codec) and
> about 25 000 calls (3 days) under valgrind - is it will be enough?
>
> P.S. On my servers about 10000 calls per day and about 300 000 per month.
>
> Sergey
>
> пт, 30 дек. 2016 г. в 21:13, Anthony Minessale <
> anthony.minessale at gmail.com>:
>
>> It looks like the ones you referenced are one time allocations from
>> loading modules.
>> To do a real test you should make calls that match production calls but
>> only one at a time very slowly and get a few hundred calls while under vg.
>> Also its very important to have a 100% clean shutdown or you can get
>> false positives.
>>
>> 2gb over 24 days is not outside the realm of normal for FS. You could do
>> a stress test and get up that high in minutes.
>> For non-video usage, you would want to start pushing into 3gb before
>> getting worried.
>> I would set 4gb as min ram to run FS but not in all cases, 8gb is much
>> safer.
>>
>>
>>
>> On Fri, Dec 30, 2016 at 6:15 AM, Sergey Safarov <s.safarov at gmail.com>
>> wrote:
>>
>> Anthony i want remove messages like "blocks are still reachable in loss
>> record" in valgring log.
>> To do this i defined GLIBCXX_FORCE_NEW=1 enviroment variable at
>> compilation state and execution state but this not take effect.
>>
>> Is it related to memory caching in APR library?
>>
>>
>> пт, 30 дек. 2016 г. в 14:01, Sergey Safarov <s.safarov at gmail.com>:
>>
>> Hello Anthony
>> I make tests on current master 594b36022e0e5bb72f9072ac0a11d98e7bbd5a7c.
>> Results is available at http://node1.pbx.rcsnet.ru/vg.log
>>
>> FreeSwitch runned by command
>> valgrind --tool=memcheck --log-file=vg.log --leak-check=full
>> --leak-resolution=high --show-reachable=yes /usr/local/freeswitch/bin/freeswitch
>> -nf -nc -vg
>>
>> On server installed vanilla config and maked one call.
>>
>> вт, 15 нояб. 2016 г. в 19:30, Anthony Minessale <
>> anthony.minessale at gmail.com>:
>>
>> Good news is 2 releases came out during that test run (and another one in
>> a week or less) so now you can start over testing newest version again.
>>
>>
>>
>> On Tue, Nov 15, 2016 at 3:23 AM, Sergey Safarov <s.safarov at gmail.com>
>> wrote:
>>
>> Hello Anthony
>> On old FS version memory usage graph is attached. I think memory usage
>> grows is stoped near 3Gb but last week memory usage is increased about 200Mb
>> later i will report result on new version and with valgrind results.
>> [image: pasted1]
>>
>> вт, 13 сент. 2016 г. в 19:12, Anthony Minessale <
>> anthony.minessale at gmail.com>:
>>
>> That looks normal to me.
>> FreeSWITCH needs a minimum of 2 GB dedicated ram for prolonged use.
>> If you chart goes past 2 to 2.5 gigs, you may have a problem then.
>>
>> you can run valgrind but you can only run 1 call at a time testing
>> typical callflow.
>>
>> valgrind --tool=memcheck --log-file=vg.log --leak-check=full
>> --leak-resolution=high --show-reachable=yes /path/to/freeswitch -vg
>>
>>
>> Also when those months are over, hopefully you update cos you can keep
>> running the same FS for many months anyway ;)
>>
>>
>>
>>
>> On Tue, Sep 13, 2016 at 9:29 AM, Sergey Safarov <s.safarov at gmail.com>
>> wrote:
>>
>> I has configured FreeSwitch process memory usage graph.
>> According this graph durring 24 days size of used memory ingrezed about
>> two times.
>> [image: FS-memory-chart.png]
>> Pastebin of FreeSwitch process memory map is placed at
>> https://pastebin.freeswitch.org/view/9e66572a
>> Are you have any suggestion how to find memory leak.
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>>
>>
>> --
>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>
>>http://freeswitch.org/http://cluecon.com/>> http://twitter.com/FreeSWITCH
>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>> <http://freeswitch.org/g+>*
>>
>> ClueCon Weekly Development Call
>> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900 <+1%20919-386-9900>
>>
>> https://www.youtube.com/watch?v=9XXgW34t40s
>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>>
>>
>> --
>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>
>>http://freeswitch.org/http://cluecon.com/>> http://twitter.com/FreeSWITCH
>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>> <http://freeswitch.org/g+>*
>>
>> ClueCon Weekly Development Call
>> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900 <(919)%20386-9900>
>>
>> https://www.youtube.com/watch?v=9XXgW34t40s
>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>>
>>
>> --
>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>
>>http://freeswitch.org/http://cluecon.com/>> http://twitter.com/FreeSWITCH
>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>> <http://freeswitch.org/g+>*
>>
>> ClueCon Weekly Development Call
>> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900 <(919)%20386-9900>
>>
>> https://www.youtube.com/watch?v=9XXgW34t40s
>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>



-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161230/35019caf/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FS-memory-chart.png
Type: image/png
Size: 29510 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161230/35019caf/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pasted1
Type: image/png
Size: 46848 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161230/35019caf/attachment-0003.png 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list