<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 10:33 AM, 郎咸武 <span dir="ltr"><<a href="mailto:langxianzhe@gmail.com" target="_blank">langxianzhe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In recently days, i found our server consume a lot of memory. For example, I only type erl command in the shell. It is about to consume 4G memory. I try to monitor with etop toos. Then i met a new question which the Memory column display some stars[1].</blockquote>
</div><br>It is the formatting code which notes it cannot represent the size of the number. Usually because the call to io_lib:format specifies a given number, N, of characters and the numbers representation is too big to fit into N characters.<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Good libraries/tricks for hunting these kinds of problems:</div><div class="gmail_extra"><br></div><div class="gmail_extra">* install an alarm_handler and run mem_sup. Report stuff about the Pid using too much memory.</div>
<div class="gmail_extra">* Use Fred Hebert's `recon` library (ferd/recon on Github).</div><div class="gmail_extra"><br></div></div>