<div dir="ltr">When it comes to memory leaks you need to use ASAN (or valgrind).<div><br></div><div>apt-get install libasan5</div><div>cd freeswitch</div><div>./configure --enable-address-sanitizer --enable-pool-sanitizer && make install<br></div><div>export LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so </div><div>export ASAN_OPTIONS=verbosity=1</div><div>/usr/local/freeswitch/bin/freeswitch -nf -vg -core<br></div><div><br></div><div>Run some call scenarios you suspect lead to mem leaks and then shut down FS, you'll see the ASAN output at shutdown.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 8, 2021 at 10:54 PM <<a href="mailto:edson@inoutglobal.xyz">edson@inoutglobal.xyz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="PT-BR" style="overflow-wrap: break-word;"><div class="gmail-m_2482212106687026308WordSection1"><p class="MsoNormal"><span lang="EN-US">Dears,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Is it possible to find out what Freeswitch’s  task leads operation system  run out of memory? <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">It causes OS to start OOM Killer.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">1-This is a backtrace Log output. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><a href="https://pastebin.com/SLEPh4p2" target="_blank">https://pastebin.com/SLEPh4p2</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">2-dmesg output showing OOM killer in action.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">[1385455.947689] Out of memory: Kill process 21698 (freeswitch) score 834 or sacrifice child<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">[1385455.956673] Killed process 21698 (freeswitch) total-vm:12718944kB, anon-rss:8202856kB, file-rss:0kB, shmem-rss:0kB<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Edson<u></u><u></u></span></p></div></div>_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>