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

Michael Truog mjtruog@REDACTED
Sat Sep 5 10:20:07 CEST 2015


On 09/04/2015 06:44 PM, Zulfiqer Sekender wrote:
> Thanks for the reply. Can't we do anything from Erlang level?
> Thanks.
Its a bit complex to track the exact amount of memory inside the Erlang VM in Erlang source code to do
something useful with the information due to the various memory pools and the garbage collection.
However, there is some code at https://github.com/okeuday/erlang_term/ which returns the upper limit
for some Erlang term's memory consumption.  The result can then be used in Erlang source code for
determining how to avoid excessive memory consumption, to avoid a crash.  CloudI uses this to limit the
incoming queue of a CloudI service with the queue_size service configuration option
(http://cloudi.org/api.html#2_services_add_config_opts).

>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Date: Sat, 5 Sep 2015 05:45:01 +0530
> From: vasdeveloper@REDACTED
> To: achowdhury918@REDACTED
> CC: erlang-questions@REDACTED
> Subject: Re: [erlang-questions] Setting maximum amount of data allocated by an Erlang node.‏
>
> Please look at OS level configurations. If you are using Linux or Unix system, check ULIMIT command.
>
> Theepan
>
> On Sat, Sep 5, 2015 at 5:23 AM, Akash Chowdhury <achowdhury918@REDACTED <mailto:achowdhury918@REDACTED>> wrote:
>
>     Hi,
>
>     I would like to set a number for
>
>     a)simultaneously alive maximum Erlang processes in an Erlang node  and
>
>     b)for maximum amount of data allocated by an Erlang node
>
>     I know that for process, I have to use the*+P <http://www.erlang.org/doc/man/erl.html#max_processes>*command-line flag. But what I have to do for setting maximum amount of data allocated by an Erlang node.
>
>     I looked at the following documentation:
>
>     http://www.erlang.org/doc/efficiency_guide/advanced.html
>
>     It says setting maximum amount of data allocated by an Erlang node is possible, but it doesn’t say how.
>
>     Any help will be highly appreciated.
>
>     Thanks.
>
>     -
>
>     Akash
>
>
>     _______________________________________________
>     erlang-questions mailing list
>     erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________ erlang-questions mailing list erlang-questions@REDACTED http://erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

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


More information about the erlang-questions mailing list