<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’ve fixed a few memory leaks in the last 60 days (now in the 1.6.10 release). &nbsp;If you can capture ones with a specific set of call flows in valgrind, that would be the path to try to fix them if there is indeed a leak. &nbsp;Just a graph showing memory use growth isn’t a particularly useful metric to find a specific issue, or often to even know if there is an issue. &nbsp;If you suspect a problem, capturing the exact allocation that is not being freed using valgrind or clang memory tools, and coming up with a reproducible scenario to create the issue, is the only way we can address probes like these.<div class=""><br class=""></div><div class="">Mike<br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 13, 2016, at 2:12 PM, David Villasmil &lt;<a href="mailto:david.villasmil.work@gmail.com" class="">david.villasmil.work@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="white-space:pre-wrap" class="">These are just a couple of them:<br class="">Note the sessions and uptime<br class=""><span id="cid:15724bfa89883e59a281">&lt;IMG_9202.PNG&gt;</span><span id="cid:15724bfb4e2bb5972262">&lt;IMG_9200.PNG&gt;</span></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Sep 13, 2016 at 8:07 PM David Villasmil &lt;<a href="mailto:david.villasmil.work@gmail.com" class="">david.villasmil.work@gmail.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't have the data with me now, but i have servers that wave been running fs for literally months, last time i checked it had processed like 700k+ calls<br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Sep 13, 2016 at 7:04 PM Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank" class="">anthony.minessale@gmail.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Your prize for 47 days uptime is probably a new version!&nbsp;<div class="">That is the best way to check for memory leaks, update whenever you can.</div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Sep 13, 2016 at 11:41 AM, Florent Krieg <span dir="ltr" class="">&lt;<a href="mailto:flokrrr@gmail.com" target="_blank" class="">flokrrr@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">We experience the same behaviour here.</div><div class=""><br class=""></div><div class=""><div class="">UP 0 years, 47 days, 19 hours, 27 minutes, 31 seconds, 208 milliseconds, 341 microseconds</div></div><div class=""><div class="">2172632 session(s) since startup</div></div><div class=""><br class=""></div><div class="">cat /proc/11818/status shows:</div><div class=""><div class="">VmPeak: &nbsp;6829064 kB</div><div class="">VmSize: &nbsp;6778648 kB</div><div class="">VmLck: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB</div><div class="">VmPin: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB</div><div class="">VmHWM: &nbsp; &nbsp;442120 kB</div><div class="">VmRSS: &nbsp; &nbsp;428764 kB</div><div class="">VmData: &nbsp;6561024 kB</div><div class="">VmStk: &nbsp; &nbsp; &nbsp; 136 kB</div><div class="">VmExe: &nbsp; &nbsp; &nbsp; &nbsp;24 kB</div><div class="">VmLib: &nbsp; &nbsp; 29644 kB</div><div class="">VmPTE: &nbsp; &nbsp; &nbsp;1828 kB</div><div class="">VmSwap: &nbsp; &nbsp; &nbsp; &nbsp;0 kB</div><div class="">Threads: &nbsp; &nbsp; &nbsp; &nbsp;507</div></div><div class=""><br class=""></div><div class="">And free says:</div><div class=""><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;total &nbsp; &nbsp; &nbsp; used &nbsp; &nbsp; &nbsp; free &nbsp; &nbsp; shared &nbsp; &nbsp;buffers &nbsp; &nbsp; cached</div><div class="">Mem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 15G &nbsp; &nbsp; &nbsp; &nbsp;15G &nbsp; &nbsp; &nbsp; 181M &nbsp; &nbsp; &nbsp; 188M &nbsp; &nbsp; &nbsp; 170M &nbsp; &nbsp; &nbsp; &nbsp;14G</div><div class="">-/+ buffers/cache: &nbsp; &nbsp; &nbsp; 1.2G &nbsp; &nbsp; &nbsp; &nbsp;14G</div><div class="">Swap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;15G &nbsp; &nbsp; &nbsp; &nbsp;28M &nbsp; &nbsp; &nbsp; &nbsp;15G</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Dunno if it helps, but we don't appear to meet any issue with calls (no crash or nothing, on other servers we have it has been running for months or even years with full memory if I'm not mistaken).</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards</div><span class=""><font color="#888888" class=""><div class="">Florent</div></font></span></div><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-09-13 18:11 GMT+02:00 Anthony Minessale <span dir="ltr" class="">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank" class="">anthony.minessale@gmail.com</a>&gt;</span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">That looks normal to me.<div class="">FreeSWITCH needs a minimum of 2 GB dedicated ram for prolonged use.</div><div class="">If you chart goes past 2 to 2.5 gigs, you may have a problem then.</div><div class=""><br class=""></div><div class="">you can run valgrind but you can only run 1 call at a time testing typical callflow.</div><div class=""><p class="">valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /path/to/freeswitch -vg</p><p class=""><br class=""></p><p class="">Also when those months are over, hopefully you update cos you can keep running the same FS for many months anyway ;)</p><p class=""><br class=""></p></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="">On Tue, Sep 13, 2016 at 9:29 AM, Sergey Safarov <span dir="ltr" class="">&lt;<a href="mailto:s.safarov@gmail.com" target="_blank" class="">s.safarov@gmail.com</a>&gt;</span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class=""><div dir="ltr" class="">I has configured FreeSwitch process memory usage graph.<div class="">According this graph durring 24 days size of used memory ingrezed about two times.</div><div class=""><span id="cid:15723ed039e56f6774d1">&lt;FS-memory-chart.png&gt;</span><br class=""></div><div class="">Pastebin of FreeSwitch process memory map is placed at <a href="https://pastebin.freeswitch.org/view/9e66572a" target="_blank" class="">https://pastebin.freeswitch.org/view/9e66572a</a><span style="line-height:1.5" class="">&nbsp;</span></div><div class=""><span style="line-height:1.5" class="">Are you have any suggestion how to find memory leak.</span></div></div>
</div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div><br class=""></div></div></body></html>