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

Ulf Wiger <>
Sat Sep 5 10:11:20 CEST 2015


> On 05 Sep 2015, at 03:44, Zulfiqer Sekender <> wrote:
> 
> Thanks for the reply. Can't we do anything from Erlang level?

A few things, but also note that hard limits on memory usage can lead to very un-erlang-like behavior.

- Adding the option `+P <process limit>` to the `erl` command line will adjust the maximum number of simultaneous processes, but the actual limit chosen may differ from the one you specify. Please see the documentation.

- If you want to let your application adjust preemptively as you are approaching certain limits, this could be done using something like Jobs [1], which supports a sampling approach to react to passing high watermarks. Samplers can rely e.g. on the Memsup functionality, the memory usage BIFs, monitoring the size of ets tables, system_info(process_count), etc. - whatever works as good proxies for resource usage in your system.

BR,
Ulf W

[1] https://github.com/uwiger/jobs <https://github.com/uwiger/jobs>
Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
http://feuerlabs.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150905/7545aae4/attachment.html>


More information about the erlang-questions mailing list