<div dir="ltr">Thank you Michael<div>I will update FS to current master on one of hosts. And compare memory usage graphs with old versions.</div><div>Also as Anthony has suggested i will wait for memory usage is grows (or stop) up to 2,5Gb.</div><div><br></div><div>Thank you <span style="line-height:1.5">Anthony for </span>valgrind usage instructions.<span style="line-height:1.5"> </span></div><div><br></div><div><br></div><div><br></div><div> </div></div><br><div class="gmail_quote"><div dir="ltr">ср, 14 сент. 2016 г. в 20:15, Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I’ve fixed a few memory leaks in the last 60 days (now in the 1.6.10 release). 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. 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. 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><br></div><div>Mike<br><div><br></div><div><br><div><blockquote type="cite"></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div>On Sep 13, 2016, at 2:12 PM, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:</div><br></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div style="white-space:pre-wrap">These are just a couple of them:<br>Note the sessions and uptime<br></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div style="white-space:pre-wrap"><span><IMG_9202.PNG></span><span><IMG_9200.PNG></span></div><br><div class="gmail_quote"></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><div dir="ltr">On Tue, Sep 13, 2016 at 8:07 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br></div></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><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><br></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div dir="ltr">On Tue, Sep 13, 2016 at 7:04 PM Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>> wrote:<br></div></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Your prize for 47 days uptime is probably a new version! <div>That is the best way to check for memory leaks, update whenever you can.</div><div><br></div><div><br></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 13, 2016 at 11:41 AM, Florent Krieg <span dir="ltr"><<a href="mailto:flokrrr@gmail.com" target="_blank">flokrrr@gmail.com</a>></span> wrote:<br></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>We experience the same behaviour here.</div><div><br></div><div><div>UP 0 years, 47 days, 19 hours, 27 minutes, 31 seconds, 208 milliseconds, 341 microseconds</div></div><div><div>2172632 session(s) since startup</div></div><div><br></div><div>cat /proc/11818/status shows:</div><div><div>VmPeak: 6829064 kB</div><div>VmSize: 6778648 kB</div><div>VmLck: 0 kB</div><div>VmPin: 0 kB</div><div>VmHWM: 442120 kB</div><div>VmRSS: 428764 kB</div><div>VmData: 6561024 kB</div><div>VmStk: 136 kB</div><div>VmExe: 24 kB</div><div>VmLib: 29644 kB</div><div>VmPTE: 1828 kB</div><div>VmSwap: 0 kB</div><div>Threads: 507</div></div><div><br></div><div>And free says:</div><div><div> total used free shared buffers cached</div><div>Mem: 15G 15G 181M 188M 170M 14G</div><div>-/+ buffers/cache: 1.2G 14G</div><div>Swap: 15G 28M 15G</div></div><div><br></div><div><br></div><div>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><br></div><div><br></div><div>Regards</div><span><font color="#888888"><div>Florent</div></font></span></div></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_extra"><div class="gmail_quote">2016-09-13 18:11 GMT+02:00 Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span>:<br></div></div></div></div></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That looks normal to me.<div>FreeSWITCH needs a minimum of 2 GB dedicated ram for prolonged use.</div><div>If you chart goes past 2 to 2.5 gigs, you may have a problem then.</div><div><br></div><div>you can run valgrind but you can only run 1 call at a time testing typical callflow.</div><div><p>valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /path/to/freeswitch -vg</p><p><br></p><p>Also when those months are over, hopefully you update cos you can keep running the same FS for many months anyway ;)</p><p><br></p></div><div><br></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Tue, Sep 13, 2016 at 9:29 AM, Sergey Safarov <span dir="ltr"><<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>></span> wrote:<br></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">I has configured FreeSwitch process memory usage graph.<div>According this graph durring 24 days size of used memory ingrezed about two times.</div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></div><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><span><FS-memory-chart.png></span><br></div><div>Pastebin of FreeSwitch process memory map is placed at <a href="https://pastebin.freeswitch.org/view/9e66572a" target="_blank">https://pastebin.freeswitch.org/view/9e66572a</a><span style="line-height:1.5"> </span></div><div><span style="line-height:1.5">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></div></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div>