<tfoot id='8re8Y'></tfoot>

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

      <small id='8re8Y'></small><noframes id='8re8Y'>

        <bdo id='8re8Y'></bdo><ul id='8re8Y'></ul>
      <legend id='8re8Y'><style id='8re8Y'><dir id='8re8Y'><q id='8re8Y'></q></dir></style></legend>
    1. 什么触发了 Java 中的完整垃圾回收?

      What triggers a full garbage collection in Java?(什么触发了 Java 中的完整垃圾回收?)
        • <small id='rkTGF'></small><noframes id='rkTGF'>

              <tbody id='rkTGF'></tbody>

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

                <tfoot id='rkTGF'></tfoot>
                <legend id='rkTGF'><style id='rkTGF'><dir id='rkTGF'><q id='rkTGF'></q></dir></style></legend>
                本文介绍了什么触发了 Java 中的完整垃圾回收?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想知道在 Java 中触发 Full Garbage Collection 的确切情况是什么.

                I'm wondering what are the exact situations that trigger Full Garbage Collection in Java.

                显而易见的是:

                • 老一代用完了
                • 烫发用完了
                • 调用 System.gc()

                其他导致full gc的情况呢?特别是:

                What about other cases that cause full gc? Particularly:

                • 幸存者空间中没有足够的可用空间从伊甸园复制对象.
                • 次要集合无法应对新对象的分配率(虽然不知道如何).

                我正在运行 Sun Java 1.6 并使用 Concurrent Mark-Sweep 和 ParNew for new gen.

                I'm running Sun Java 1.6 and using Concurrent Mark-Sweep and ParNew for new gen.

                推荐答案

                我观察到另外一种情况,在 Ubuntu 上的 Java Hotspot VM 1.6 64bit 中使用 Concurrent Mark-Sweep 触发完整 GC:

                I've observed one more situation that triggers a full GC in Java Hotspot VM 1.6 64bit on Ubuntu, using Concurrent Mark-Sweep:

                如果 -XX:PermSize 值不等于 -XX:MaxPermSize(例如更小),当 java 需要扩展 PermGen(即使它不需要分配比 MaxPermSize 更多的内存)时,偶尔会发生 Full GC.因此,将 -XX:PermSize 和 -XX:MaxPermSize 设置为相同似乎是个好主意.

                If -XX:PermSize value does not equal to -XX:MaxPermSize (e.g. is smaller), an occasional Full GC happens when java needs to expand the PermGen (even though it does not need to allocate more memory than MaxPermSize). So setting -XX:PermSize and -XX:MaxPermSize to be the same seems like a good idea.

                这篇关于什么触发了 Java 中的完整垃圾回收?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 中的默认语言环境设置以使其保持一致?)
                <legend id='OKFc6'><style id='OKFc6'><dir id='OKFc6'><q id='OKFc6'></q></dir></style></legend>

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

                        <tbody id='OKFc6'></tbody>

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

                      • <tfoot id='OKFc6'></tfoot>