<div><div dir="auto">Hi John</div></div><div dir="auto"><br></div><div dir="auto">I’ve a process which does that. Every 5mn it checks it the total memory went above a threshold and I it triggers a garbage collection. But this time it didn’t help. </div><div dir="auto"><br></div><div dir="auto">My app is a proxy server which forward packets from left to right by applying a transformation to them on the fly. </div><div dir="auto"><br></div><div dir="auto">/Frank</div><div dir="auto"><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-4645307673652439173WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">That’s not a lot to go on. FWIW, most of my memory issues have been caused by failing to understand this section of the manual: <a href="http://erlang.org/doc/efficiency_guide/binaryhandling.html" target="_blank">http://erlang.org/doc/efficiency_guide/binaryhandling.html</a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><a href="http://erlang.org/doc/man/erlang.html#garbage_collect-1" target="_blank">http://erlang.org/doc/man/erlang.html#garbage_collect-1</a> run manually can be an interesting experiment to see what kind of memory problem you’ve got.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:erlang-questions-bounces@erlang.org" target="_blank">erlang-questions-bounces@erlang.org</a> <<a href="mailto:erlang-questions-bounces@erlang.org" target="_blank">erlang-questions-bounces@erlang.org</a>> <b>On Behalf Of </b>Frank Muller<br><b>Sent:</b> Thursday, January 31, 2019 14:21<br><b>To:</b> Erlang-Questions Questions <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br><b>Subject:</b> [erlang-questions] VM leaking memory<u></u><u></u></span></p></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-4645307673652439173WordSection1"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="color:#313131;background:white">Hello guys</span><span style="color:#313131"><br><br><span style="background:white">After adding a new feature to my app (running non-stop for 5 years), it started leaking memory in staging.</span></span><u></u><u></u></p><div><p class="MsoNormal"><span style="color:#313131;background:white"><br>Obviously, I’m suspecting this new feature. Command top shows RES going from 410m (during startup) to 6.2g in less than 12h.</span><span style="color:#313131"><br><br><span style="background:white">For stupid security reasons, it will take me weeks to be allowed to share collected statistics (from recon, entop) here, but I can share them in private if someone is willing to help.</span><br><br><br><span style="background:white">My config: Erlang 21.2.4 on CentOS 7</span><br><br><span style="background:white">Thanks you.</span><br><span style="background:white">/Frank</span></span><u></u><u></u></p></div></div></div></blockquote></div></div>