<div dir="ltr">Hello Daniel,<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 3:13 AM, Daniel <span dir="ltr"><<a href="mailto:liudanking@gmail.com" target="_blank">liudanking@</a></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
So my question is:<br>
Does it means that  I meat a â€˜classic' memory fragmentation problem? If YES, how can I free the fragment memory to OS?Because my ejabberd have been killed by Linux OOM for several times. If NO, what cause the memory increase all the time?</blockquote><div><br></div><div>Would you mind checking how much of the binary_alloc memory is part of the mbc pool? ("erlang:system_info({allocator,binary_alloc}).", look for mbcs_pool). If it is very large you may have hit the bug described in OTP-12323, which has been fixed in Erlang/OTP 17.4. The scenario you are describing where the memory utilization constantly decreases sound very similar to what the bug fixed. If you don't want to upgrade to 17.4, you can also disable the pool in 17.3.</div><div><br></div><div>Lukas</div></div></div></div>