[erlang-questions] Erlang 18.0, hanging erlang:memory(total)?

Nico Kruber nico.kruber@REDACTED
Thu Jul 2 00:29:39 CEST 2015


Hi folks,
is it possible that erlang:memory/1 can hang?

Today I had a unit test failing in the middle of its execution (it runs the 
same test over and over again and it was like the 20th time it was run). There 
was a timeout (>50s) in one process not being able to finish its message 
handling and erlang:process_info(Pid, current_stacktrace) is repeatedly 
showing the following stacktrace during these 50s:

{current_stacktrace,
             [{erlang,receive_emd,3,[]},
              {erlang,get_mem_data,3,[]},
              {erlang,memory,1,[]},
              {dht_node_state,details,1,
                  [{file,"src/dht_node_state.erl"},{line,510}]},
              {dht_node,on,2,[{file,"src/dht_node.erl"},{line,384}]},
              {mockup_dht_node,on,2,
                  [{file,"test/mockup_dht_node.erl"},{line,67}]},
              {gen_component,on,3,
                  [{file,"src/gen_component.erl"},{line,614}]}]}

The line in the dht_node_state module literally only calls 
erlang:memory(total) and creates a record with this info. Apparently, it never 
gets out of erlang:memory/1 :(


Thanks for your help
Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150702/98e2ef48/attachment.bin>


More information about the erlang-questions mailing list