<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 09/04/2015 06:44 PM, Zulfiqer
      Sekender wrote:<br>
    </div>
    <blockquote cite="mid:BAY175-W13702179881F47500B681FA7560@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Thanks for the reply. Can't we do anything from
        Erlang level?<br>
        Thanks.<br>
      </div>
    </blockquote>
    Its a bit complex to track the exact amount of memory inside the
    Erlang VM in Erlang source code to do<br>
    something useful with the information due to the various memory
    pools and the garbage collection.<br>
    However, there is some code at
    <a class="moz-txt-link-freetext" href="https://github.com/okeuday/erlang_term/">https://github.com/okeuday/erlang_term/</a> which returns the upper
    limit<br>
    for some Erlang term's memory consumption.  The result can then be
    used in Erlang source code for<br>
    determining how to avoid excessive memory consumption, to avoid a
    crash.  CloudI uses this to limit the<br>
    incoming queue of a CloudI service with the queue_size service
    configuration option<br>
    (<a class="moz-txt-link-freetext" href="http://cloudi.org/api.html#2_services_add_config_opts">http://cloudi.org/api.html#2_services_add_config_opts</a>).<br>
    <br>
    <blockquote cite="mid:BAY175-W13702179881F47500B681FA7560@phx.gbl"
      type="cite">
      <div dir="ltr"><br>
        <hr>Date: Sat, 5 Sep 2015 05:45:01 +0530<br>
        From: <a class="moz-txt-link-abbreviated" href="mailto:vasdeveloper@gmail.com">vasdeveloper@gmail.com</a><br>
        To: <a class="moz-txt-link-abbreviated" href="mailto:achowdhury918@gmail.com">achowdhury918@gmail.com</a><br>
        CC: <a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
        Subject: Re: [erlang-questions] Setting maximum amount of data
        allocated by an Erlang node.‏<br>
        <br>
        <div dir="ltr">Please look at OS level configurations. If you
          are using Linux or Unix system, check ULIMIT command.
          <div><br>
          </div>
          <div>Theepan</div>
        </div>
        <div class="ecxgmail_extra"><br>
          <div class="ecxgmail_quote">On Sat, Sep 5, 2015 at 5:23 AM,
            Akash Chowdhury <span dir="ltr"><<a
                moz-do-not-send="true"
                href="mailto:achowdhury918@gmail.com" target="_blank">achowdhury918@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="ecxgmail_quote" style="border-left:1px
              #ccc solid;padding-left:1ex;">
              <div dir="ltr">
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);">Hi,</p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);">I
                  would like to set a number for</p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
                    style="line-height:20.8267px;">a)<span
                      style="line-height:normal;font-stretch:normal;font-size:7pt;font-family:'Times
                      New Roman';">      </span></span><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">simultaneously
                    alive maximum Erlang processes in an Erlang node
                     and</span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
                    style="line-height:20.8267px;">b)<span
                      style="line-height:normal;font-stretch:normal;font-size:7pt;font-family:'Times
                      New Roman';">      </span></span><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">for
                    maximum amount of data allocated by an Erlang node</span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">I
                    know that for process, I have to use the<span
                      style="line-height:20.8267px;"> </span><span
                      style="line-height:20.8267px;"><b
                        style="line-height:20.8267px;"><a
                          moz-do-not-send="true"
                          href="http://www.erlang.org/doc/man/erl.html#max_processes"
style="line-height:20.8267px;font-weight:inherit;color:blue;"
                          target="_blank"><span
                            style="line-height:20.8267px;"><span
style="line-height:20.8267px;color:windowtext;font-weight:normal;text-decoration:none;">+P</span></span></a></b></span><span
                      style="line-height:20.8267px;"> </span>command-line
                    flag. But what I have to do for setting maximum
                    amount of data allocated by an Erlang node.</span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
style="line-height:20.8267px;color:rgb(31,73,125);background-image:initial;background-repeat:initial;">I
                    looked at the following documentation:</span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);text-indent:0.5in;"><span
style="line-height:20.8267px;color:rgb(31,73,125);background-image:initial;background-repeat:initial;"><a
                      moz-do-not-send="true"
                      href="http://www.erlang.org/doc/efficiency_guide/advanced.html"
style="line-height:20.8267px;font-weight:inherit;color:blue;"
                      target="_blank">http://www.erlang.org/doc/efficiency_guide/advanced.html</a></span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
style="line-height:20.8267px;color:rgb(31,73,125);background-image:initial;background-repeat:initial;">It
                    says setting </span><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">maximum
                    amount of data allocated by an Erlang node is
                    possible, but it doesn’t say how.</span><span
style="line-height:20.8267px;color:rgb(31,73,125);background-image:initial;background-repeat:initial;"></span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">Any
                    help will be highly appreciated.</span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">Thanks.</span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">-</span></p>
                <p
style="line-height:20.8267px;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0);"><span
style="line-height:20.8267px;background-image:initial;background-repeat:initial;">Akash</span></p>
              </div>
              <br>
              _______________________________________________<br>
              erlang-questions mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
              <a moz-do-not-send="true"
                href="http://erlang.org/mailman/listinfo/erlang-questions"
                rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        _______________________________________________
        erlang-questions mailing list
        <a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
        <a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a> </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>