[erlang-questions] Erlang shell crashes

Raimo Niskanen <>
Thu Oct 26 09:21:44 CEST 2006


It seems your application has a process that is growing continously,
and after 15 hours its attemt to allocate a 356 MByte heap failed
due to insufficient memory.

Your total allocated memory is 1060 MByte of which roughly 356 MByte
should be the old heap of the offendng process, leaving 704 MByte
for the rest of the beam emulator. That is also a large emulator.
Is your application deliberately using lots of memory?

You can use the crashdump_viewer to inspect the crashdump and find out
more about the offending process. You can also use 'top' from another
OS shell while your application runs to verify that the beam 
emulator is growing continously and slowly, that being a fatal problem.

The beam emulator's OS process ID can be found with os:getpid().

On Thu, Oct 26, 2006 at 11:39:13AM +0530, Surindar Sivanesan wrote:
> Dear all,
> 
> I'm using erlang emulator version 5.4.3 for running an application that has
> to be run round the clock.
> The application has ran perfectly for more than 15 hours.
> Then the erlang shell is terminated abnormally.
> The general information of the crash report is
> 
>  Slogan eheap_alloc: Cannot allocate 373664380 bytes of memory (of type
> "heap"). Node name '' Crashdump created on Thu Oct 26 08:48:46
> 2006 System version Erlang (BEAM) emulator version 5.4.3 [threads:0] 
> Compiled
> Wed Dec 15 12:59:41 2004 Memory allocated 1111921780 bytes Atoms 5644 
> Processes
> 716 ETS tables 76 Funs 370
> 
> Whether any latest erlang version can solve this problem?
> Is there any settings available to solve this problem?
> I'm running erlang using werl.exe; Whether running erlang using erl.exe will
> show any difference?
> Please clarify...
> Thanks in advance.
> 
> -- 
> with regards,
> S.Surindar

> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions


-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list