[erlang-questions] Preallocate memory
Sat Jun 1 01:05:14 CEST 2013
Afaik there is no flag for the Erlang VM to tell it to preallocate memory.
There is however the +hms flag to increase the default heap size of Erlang
You may want to look at the +hmbs and +a flags  as well depending on how
your Erlang application is constructed.
There is also a ton of flags for the Erlang allocators  which could be
The most efficient way however, if you want to limit the RAM usage of your
Java app, is probably to configure the JVM with the -Xmx flag , or use
something like ulimit  or cgroups  to limit the JVM.
On Fri, May 31, 2013 at 4:36 PM, Matthew Evans <>wrote:
> Hi Group
> What is the best way (if it's possible) to preallocate memory on startup
> for the Erlang VM? On our setup we have a low priority Java app that we
> don't want to consume RAM that is needed for the higher priority Erlang VM.
> Sent from my iPhone
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions