<div dir="ltr"><span style="font-size:14px">"I Just Keep on Bleeding and I Won't Die "   very humorous...</span><div><br></div><div>i follow your post the see what happend in my erlang node ,  and the binary allocted is also my biggest problem, it almost have 5G,and the usage rate is very low</div><div><div><br></div><div>rp(recon_alloc:fragmentation(current)).</div><div><br></div><div>{mbcs_carriers_size,1438941360</div><div>{mbcs_carriers_size,908361904</div><div>{mbcs_carriers_size,928284848</div><div>{mbcs_carriers_size,817135792</div><div>{mbcs_carriers_size,556302512</div><div>{mbcs_carriers_size,479494320</div><div>{mbcs_carriers_size,399278256</div><div>{mbcs_carriers_size,271876272</div><div>{mbcs_carriers_size,32944</div><div><br></div><div>sum ->  5 799 708 208</div><div><br></div><div>{mbcs_usage,0.09427699263575272},</div><div>{mbcs_usage,0.010110173004349157},</div><div>{mbcs_usage,0.05721490350125805},</div><div>{mbcs_usage,0.03553723173589733},</div><div>{mbcs_usage,0.0037855806051078915},</div><div>{mbcs_usage,0.002756687503618395},</div><div>{mbcs_usage,0.0015088825673492223},</div><div>{mbcs_usage,0.0015768937717374615},</div><div>{mbcs_usage,0.003399708596406022},</div></div><div><br></div><div><br></div><div>but it look like a bug more than alloctor fragment , the default alloctor strage is {as,aoffcbf}]},   does aoffcbf can as bad as such low usage...</div><div>my erlang is erts6.4 r17.5 , </div><div><br></div><div>this post describle a memory leak about r17.3  </div><div><a href="http://erlang.2086793.n4.nabble.com/Possibly-memory-leak-in-R17-td4690007.html">http://erlang.2086793.n4.nabble.com/Possibly-memory-leak-in-R17-td4690007.html</a><br></div><div><a href="https://github.com/erlang/otp/blob/maint/erts/emulator/internal_doc/CarrierMigration.md#searching-the-pool">https://github.com/erlang/otp/blob/maint/erts/emulator/internal_doc/CarrierMigration.md#searching-the-pool</a><br></div><div><br></div><div>but i use r17.5.</div><div><br></div><div><br></div><div><br></div><div><div>rp(erlang:system_info({allocator,binary_alloc})).</div><div>[{instance,0,</div><div>           [{versions,"0.9","3.0"},</div><div>           {options,[{e,true},</div><div>                      {t,true},</div><div>                      {ramv,false},</div><div>                      {sbct,524288},</div><div>                      {asbcst,4145152},</div><div>                      {rsbcst,20},</div><div>                      {rsbcmt,80},</div><div>                      {rmbcmt,50},</div><div>                      {mmbcs,32768},</div><div>                      {mmmbc,18446744073709551615},</div><div>                      {mmsbc,256},</div><div>                      {lmbcs,5242880},</div><div>                      {smbcs,262144},</div><div>                      {mbcgs,10},</div><div>                      {acul,0},</div><div>                      {as,aoffcbf}]},</div></div><div><br></div><div>does </div><div><br></div><div> -->>  all</div><div><br></div><div><div>[{{binary_alloc,1},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.09427699263575272},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,135659064},</div><div>   {mbcs_carriers_size,1438941360}]},</div><div> {{binary_alloc,4},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.010110173004349157},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,9183696},</div><div>   {mbcs_carriers_size,908361904}]},</div><div> {{binary_alloc,2},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.05721490350125805},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,53111728},</div><div>   {mbcs_carriers_size,928284848}]},</div><div> {{binary_alloc,3},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.03553723173589733},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,29038744},</div><div>   {mbcs_carriers_size,817135792}]},</div><div> {{binary_alloc,5},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.0037855806051078915},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,2105928},</div><div>   {mbcs_carriers_size,556302512}]},</div><div> {{binary_alloc,6},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.002756687503618395},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,1321816},</div><div>   {mbcs_carriers_size,479494320}]},</div><div> {{binary_alloc,7},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.0015088825673492223},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,602464},</div><div>   {mbcs_carriers_size,399278256}]},</div><div> {{binary_alloc,8},</div><div>  [{sbcs_usage,1.0},</div><div>   {mbcs_usage,0.0015768937717374615},</div><div>   {sbcs_block_size,0},</div><div>   {sbcs_carriers_size,0},</div><div>   {mbcs_block_size,428720},</div><div>   {mbcs_carriers_size,271876272}]},</div></div><div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-13 11:43 GMT+08:00 Vance Shipley <span dir="ltr"><<a href="mailto:vances@motivity.ca" target="_blank">vances@motivity.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Oct 13, 2015 at 8:49 AM, yikang zhuo <<a href="mailto:zhuoyikang@gmail.com">zhuoyikang@gmail.com</a>> wrote:<br>
> top res -> 8.3g<br>
> erlang:memory() -> 3.6G<br>
</span>...<br>
<span class="">> wow.. does memory Leak in ejabberd or erlang 17.5 erts-6.4<br>
<br>
</span>Not in the buggy way you may suspect:<br>
<a href="https://blog.heroku.com/archives/2013/11/7/logplex-down-the-rabbit-hole" rel="noreferrer" target="_blank">https://blog.heroku.com/archives/2013/11/7/logplex-down-the-rabbit-hole</a><br>
<br>
Jump down to the section titled "I Just Keep on Bleeding and I Won't Die".<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
     -Vance<br>
</font></span></blockquote></div><br></div>