<div dir="auto">Hi all,</div><div dir="auto"><br></div><div dir="auto">I’m seeing some cases in my application where our off-process binary heap allocation jumps by several orders of magnitude and then goes down right after. I’m sure this is something that’s in our app just loading dozens of huge binaries into memory at once and not a bug in anything underlying or a binary leak, but finding where these allocations are happening so I can make some changes to avoid this has so far not yielded any results. Ideally I’d like to be able to set a trace with something like erlang:trace/3 on some function that sends a tracer message whenever a binary over 30MB is allocated and includes the call stack or even just the calling function that allocated the binary in the trace message.</div><div dir="auto"><br></div><div dir="auto">Going through the binary vheap and getting a list of the processes that have references to those binaries won’t help in this case.</div><div dir="auto"><br></div><div dir="auto">Is such a trace possible? Is there some flag I can set when starting my BEAM process to give me some kind of debug output that would give me this information? I’d imagine this is all in C, so it might be a bit tricky...</div><div dir="auto"><br></div><div dir="auto">Thanks in advance for the help!</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Devon</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br>_________________<br>Devon Estes<br><a href="http://203.559.0323" target="_blank">203.559.0323</a><br><a href="http://www.devonestes.com" target="_blank">www.devonestes.com</a><br><br></div></div>