Why Beam.smp crashes when memory is over?

Max Lapshin <>
Sun Nov 8 21:56:05 CET 2009

Why does Erlang crashes, when physical memory is over?

Error is:

beam.smp(5454,0xb01aa000) malloc: *** mmap(size=41943040) failed (error code=12)

         *** error: can't allocate region

                                         *** set a breakpoint in
malloc_error_break to debug

Isn't it possible to intercept this error and stop erlang process,
that requests memory?

More information about the erlang-questions mailing list