Previously when I was running into similar dumps, it was caused by a huge mailbox in a process, it had piled millions of messages. You could check it with this snippet of code:
top() ->
Procs = lists:foldl(fun(Pid, Acc) ->
case erlang:process_info(Pid, message_queue_len) of
{_K, V} -> [{Pid, V} | Acc];
_ -> Acc
end
end, [], erlang:processes()),
lists:keysort(2, Procs).
2条答案
按热度按时间vawmfj5a1#
如果您在运行应用程序时遇到此错误,则意味着您的某个函数正在递归调用,并试图分配操作系统无法提供给VM的大量内存,因此VM因该内存分配错误而崩溃。
eufgjt7s2#
Previously when I was running into similar dumps, it was caused by a huge mailbox in a process, it had piled millions of messages.
You could check it with this snippet of code: