[erlang-questions] Setting maximum amount of data allocated by an Erlang node.‏

Lukas Larsson <>
Mon Sep 7 08:00:46 CEST 2015


> On 7 sep 2015, at 03:23, Theepan <> wrote:
> Hi Lukas,
> I presume that erts_alloc is a control layer on top of malloc/calloc/realloc or their variants to handle different types of allocations. The question is, if a limit is set -- of course, with very clear knowledge of what is being done -- can we expect relevant exception/error from the LIB/STDLIB/BIF functions?

From some, but far from all. When you run out of memory it is almost always a catastrophic failure resulting in an erlang vm crash.

> Theepan
>> On Mon, Sep 7, 2015 at 3:15 AM, Lukas Larsson <> wrote:
>> Hello Akash,
>>> On Sat, Sep 5, 2015 at 1:53 AM, Akash Chowdhury <> wrote:
>>> b)      for maximum amount of data allocated by an Erlang node
>> Yes it is possible since at least 17.0 to limit the amount of memory the VM uses on OSs with a good virtual memory management interface. You need to supply two memory allocator flags in combination: +MMscs <Limit in MB> +Musac false. You can read up on what they do in the erts_alloc manual.
>> Lukas
>> _______________________________________________
>> erlang-questions mailing list
>> http://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150907/cf06355d/attachment.html>

More information about the erlang-questions mailing list