<bdo id='5JfsR'></bdo><ul id='5JfsR'></ul>

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

        <small id='5JfsR'></small><noframes id='5JfsR'>

      1. 从 Java SE 6 开始,Sun 的 JVM 的默认最大堆大小是多少?

        What is the default maximum heap size for Sun#39;s JVM from Java SE 6?(从 Java SE 6 开始,Sun 的 JVM 的默认最大堆大小是多少?)

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

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

                  <tbody id='CC73m'></tbody>

                • 本文介绍了从 Java SE 6 开始,Sun 的 JVM 的默认最大堆大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  从 Java SE 6 开始,Sun 的 JVM 的默认最大堆大小是多少(即相当于设置 -Xmx)?

                  What is the default maximum heap size for Sun's JVM from Java SE 6 (i.e. equivalent to setting -Xmx)?

                  看起来像带有服务器级机器的 Java SE 5,是

                  Looks like for Java SE 5 with a server-class machine, it's

                  小于物理内存的 1/4 或 1GB.

                  Smaller of 1/4th of the physical memory or 1GB.

                  奖励问题:对于 IBM 的 JVM,您可以问它

                  Bonus question: Looks like for IBM's JVM you can ask it

                  java -verbose:sizes -version
                  

                  你能同样问一下 Sun 的 JVM 吗?

                  Can you similarly ask Sun's JVM?

                  编辑:

                  我使用 Runtime.getRuntime().maxMemory 来确认 min(physical memory/4, 1G),在 Sun 文档.

                  I used Runtime.getRuntime().maxMemory to confirm min(physical memory/4, 1G), referenced in Sun documentation.

                  推荐答案

                  java 1.6.0_21 或更高版本,左右...

                  java 1.6.0_21 or later, or so...

                  $ java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize
                  uintx MaxHeapSize                         := 12660904960      {product}
                  

                  看来 min(1G) 已被删除.

                  It looks like the min(1G) has been removed.

                  或者在 Windows 上使用 findstr

                  Or on Windows using findstr

                  C:>java -XX:+PrintFlagsFinal -version 2>&1 | findstr MaxHeapSize
                  

                  这篇关于从 Java SE 6 开始,Sun 的 JVM 的默认最大堆大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

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

                          <tfoot id='JZ2ya'></tfoot>

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