[erlang-questions] Standard allocator memory leak

Denis Kirichenko denis.kirichenko@REDACTED
Mon Dec 10 13:00:16 CET 2018


Hello. Does anybody can help me to debug std_alloc memory leak. Our 
production elixir/erlang application now leak for about 200MB a day. 
Recon shows that it is because of std_alloc. But standard allocator 
contains a lot of different types of data, and I don't know how to start 
debugging this problem. Any ideas? Any ways to inspect the erlang vm?

 > recon_alloc:memory(allocated_types).
[{binary_alloc,173309952},
  {driver_alloc,2392064},
  {eheap_alloc,256114688},
  {ets_alloc,155713536},
  {fix_alloc,7897088},
  {ll_alloc,35913728},
  {sl_alloc,294912},
  {std_alloc,1883799552}, %<<< 1.8G
  {temp_alloc,1179648}]

 > erlang:memory().
[{total,2098938448},
  {processes,99837664},
  {processes_used,99355784},
  {system,1999100784}, %<<< 1.9G
  {atom,842689},
  {atom_used,828419},
  {binary,41062080},
  {code,15612969},
  {ets,88859304}]




More information about the erlang-questions mailing list