[erlang-questions] Possibly memory leak in R17

Max Lapshin max.lapshin@REDACTED
Tue Apr 29 17:17:13 CEST 2014


(flussonic@REDACTED)3> recon_alloc:snapshot_get().
{[{total,2201115696},
  {processes,140618848},
  {processes_used,140254568},
  {system,2060496848},
  {atom,561761},
  {atom_used,551696},
  {binary,1939374344},
  {code,17258778},
  {ets,85224424}],
 [{{sys_alloc,0},
   [{options,[{e,true},{m,libc},{tt,131072},{tp,0}]}]},
  {{mseg_alloc,0},
   [{memkind,[{name,"all memory"},
              {status,[{cached_segments,0},
                       {cache_hits,79},
                       {segments,19,20,20},
                       {segments_size,35913728,36175872,36175872},
                       {segments_watermark,19}]},
              {calls,[{mseg_alloc,0,104},
                      {mseg_dealloc,0,85},
                      {mseg_realloc,0,0},
                      {mseg_create_resize,0,0},
                      {mseg_create,0,25},
                      {mseg_destroy,0,7},
                      {mseg_recreate,0,0},
                      {mseg_clear_cache,0,0},
                      {mseg_check_cache,0,6}]}]},
    {options,[{amcbf,4194304},{rmcbf,20},{mcs,10},{scs,0}]},
    {version,"0.9"}]},

.....



(flussonic@REDACTED)6> ets:foldl(fun(T,Sum) -> erlang:external_size(T) +
Sum end, 0, live_streams_attrs).
1749128853

(flussonic@REDACTED)9> lists:sum([ ets:foldl(fun(T,Sum) ->
erlang:external_size(T) + Sum end, 0, T) || T <- ets:all(), is_atom(T)]).
1758913413


So, it looks like only 2G are really used. Where could leak the rest?  Is
it possible that data is leaking or accumulating somewhere in network
buffers?

Version on R16 doesn't have such problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140429/7a1684d4/attachment.htm>


More information about the erlang-questions mailing list