• <legend id='RuDHV'><style id='RuDHV'><dir id='RuDHV'><q id='RuDHV'></q></dir></style></legend>
      <i id='RuDHV'><tr id='RuDHV'><dt id='RuDHV'><q id='RuDHV'><span id='RuDHV'><b id='RuDHV'><form id='RuDHV'><ins id='RuDHV'></ins><ul id='RuDHV'></ul><sub id='RuDHV'></sub></form><legend id='RuDHV'></legend><bdo id='RuDHV'><pre id='RuDHV'><center id='RuDHV'></center></pre></bdo></b><th id='RuDHV'></th></span></q></dt></tr></i><div id='RuDHV'><tfoot id='RuDHV'></tfoot><dl id='RuDHV'><fieldset id='RuDHV'></fieldset></dl></div>
    1. <tfoot id='RuDHV'></tfoot>
        <bdo id='RuDHV'></bdo><ul id='RuDHV'></ul>

        <small id='RuDHV'></small><noframes id='RuDHV'>

        重复的 Java 运行时选项:优先顺序是什么?

        Duplicated Java runtime options : what is the order of preference?(重复的 Java 运行时选项:优先顺序是什么?)

          <i id='Cl2ZD'><tr id='Cl2ZD'><dt id='Cl2ZD'><q id='Cl2ZD'><span id='Cl2ZD'><b id='Cl2ZD'><form id='Cl2ZD'><ins id='Cl2ZD'></ins><ul id='Cl2ZD'></ul><sub id='Cl2ZD'></sub></form><legend id='Cl2ZD'></legend><bdo id='Cl2ZD'><pre id='Cl2ZD'><center id='Cl2ZD'></center></pre></bdo></b><th id='Cl2ZD'></th></span></q></dt></tr></i><div id='Cl2ZD'><tfoot id='Cl2ZD'></tfoot><dl id='Cl2ZD'><fieldset id='Cl2ZD'></fieldset></dl></div>

              <tbody id='Cl2ZD'></tbody>
            • <bdo id='Cl2ZD'></bdo><ul id='Cl2ZD'></ul>
              <tfoot id='Cl2ZD'></tfoot>

                <small id='Cl2ZD'></small><noframes id='Cl2ZD'>

              1. <legend id='Cl2ZD'><style id='Cl2ZD'><dir id='Cl2ZD'><q id='Cl2ZD'></q></dir></style></legend>
                • 本文介绍了重复的 Java 运行时选项:优先顺序是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  考虑下面的命令行

                  java -Xms128m -Xms256m myapp.jar
                  

                  JVM 最小内存(Xms 选项)适用哪些设置:128m 或 256m?

                  Which settings will apply for JVM Minimum memory (Xms option) : 128m or 256m ?

                  推荐答案

                  取决于 JVM,也许是版本......也许甚至可能是你当时桌上有多少个回形针.它甚至可能不起作用.不要那样做.

                  Depends on the JVM, perhaps the version...perhaps even how many paper clips you have on your desk at the time. It might not even work. Don't do that.

                  如果由于某种原因它超出了您的控制范围,请以与运行 jar 相同的方式编译和运行它.但请注意,依赖选项的顺序是一个非常糟糕的主意.

                  If it's out of your control for some reason, compile and run this the same way you'd run your jar. But be warned, relying on the order of the options is a really bad idea.

                  public class TotalMemory
                  {
                      public static void main(String[] args)
                      {
                           System.out.println("Total Memory: "+Runtime.getRuntime().totalMemory());
                           System.out.println("Free Memory: "+Runtime.getRuntime().freeMemory());
                      }
                  }
                  

                  这篇关于重复的 Java 运行时选项:优先顺序是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                  ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                  How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                  Why a sawtooth shaped graph?(为什么是锯齿形图形?)

                  <i id='XUCJs'><tr id='XUCJs'><dt id='XUCJs'><q id='XUCJs'><span id='XUCJs'><b id='XUCJs'><form id='XUCJs'><ins id='XUCJs'></ins><ul id='XUCJs'></ul><sub id='XUCJs'></sub></form><legend id='XUCJs'></legend><bdo id='XUCJs'><pre id='XUCJs'><center id='XUCJs'></center></pre></bdo></b><th id='XUCJs'></th></span></q></dt></tr></i><div id='XUCJs'><tfoot id='XUCJs'></tfoot><dl id='XUCJs'><fieldset id='XUCJs'></fieldset></dl></div>
                        <tbody id='XUCJs'></tbody>
                    • <small id='XUCJs'></small><noframes id='XUCJs'>

                          <bdo id='XUCJs'></bdo><ul id='XUCJs'></ul>
                          <legend id='XUCJs'><style id='XUCJs'><dir id='XUCJs'><q id='XUCJs'></q></dir></style></legend>
                            <tfoot id='XUCJs'></tfoot>