[erlang-questions] How to examine binaries identified by erlang:memory/2?

Paul Fisher pfisher@REDACTED
Sat Mar 14 14:42:05 CET 2009

I'm trying to track down what appears to be a memory leak in our nodes, 
which appears to be concentrated in binaries:

An earlier reading:

 > [garbage_collect(P) || P <- processes()]. 

then 3.5+ hours later:

 > [garbage_collect(P) || P <- processes()]. 

with the 'binary' number steadily increasing in between.

Examining the memory associated with processes does not show anything 
near this amount of memory consumption, so it appears that we are 
keeping references to binaries from our linked-in drivers when we do not 
intend to.

My question:  Is there any way to identify the "leaked" binaries?  If I 
could look at a few, it would probably be enough to figure out the 
culprit immediately.



More information about the erlang-questions mailing list