<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 05 Sep 2015, at 03:44, Zulfiqer Sekender <<a href="mailto:msekender@hotmail.com" class="">msekender@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Thanks for the reply. Can't we do anything from Erlang level?</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><br class=""></div><div>A few things, but also note that hard limits on memory usage can lead to very un-erlang-like behavior.</div><div><br class=""></div><div>- 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.</div><div><br class=""></div><div>- 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.</div><div><br class=""></div><div>BR,</div><div>Ulf W</div><div><br class=""></div><div>[1] <a href="https://github.com/uwiger/jobs" class="">https://github.com/uwiger/jobs</a></div><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div class=""><div class="">Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div class=""><a href="http://feuerlabs.com" class="">http://feuerlabs.com</a></div></div><div class=""><br class=""></div></span><br class="Apple-interchange-newline">

</div>
<br class=""></body></html>