<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,</div>
    <div class="moz-cite-prefix"><font face="Arial"><br>
      </font></div>
    <div class="moz-cite-prefix"><font face="Arial"></font>Le 22/07/2019
      à 16:01, Clément David a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:DBBPR09MB317446244899E27875B1A90AB0C40@DBBPR09MB3174.eurprd09.prod.outlook.com">
      <pre class="moz-quote-pre" wrap="">Hello Samuel,

You can get memory information from the JVM using JIMS:

--> jimport java.lang.Runtime

--> Runtime.getRuntime().totalMemory()
 ans  =

  249036800</pre>
    </blockquote>
    <p>I do not get an amount matching the Scilab setting:</p>
    <p><font size="-1"><tt>--> jimport java.lang.Runtime</tt><tt><br>
        </tt><tt>--> Runtime.getRuntime().totalMemory()</tt><tt><br>
        </tt><tt> ans  =</tt><tt><br>
        </tt><tt>  111149056</tt><tt><br>
        </tt><tt><br>
        </tt><tt>--> // while we could expect, with my Scilab <
          6.0.2 session</tt><tt><br>
        </tt><tt>-->
          getPreferencesValue("//general/body/java-heap-memory","heap-size")</tt><tt><br>
        </tt><tt> ans  =</tt><tt><br>
        </tt><tt> 256</tt><tt><br>
        </tt></font></p>
    <p><font size="-1"><tt>--> // or with Scilab >= 6.0.2:</tt><tt><br>
        </tt><tt>-->
          xmlGetValues("//general/body/java-heap-memory","heap-size")</tt><tt><br>
        </tt><tt> ans  =</tt><tt><br>
        </tt><tt> 256</tt><tt><br>
        </tt></font></p>
    <p>What could explain this difference? There is still much more than
      256 MB free RAM on my computer.<br>
      From here, is the amount of available Java memory as doubtful as
      for the total memory?<br>
      <br>
      Best regards<br>
      Samuel<br>
    </p>
    <p>PS: related java page:
      <a class="moz-txt-link-freetext" href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Runtime.html">https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Runtime.html</a></p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>