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

    <bdo id='ACCRm'></bdo><ul id='ACCRm'></ul>

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

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

        <legend id='ACCRm'><style id='ACCRm'><dir id='ACCRm'><q id='ACCRm'></q></dir></style></legend>

        如何在 Java 中强制进行垃圾收集?

        How to force garbage collection in Java?(如何在 Java 中强制进行垃圾收集?)
        <i id='puyuO'><tr id='puyuO'><dt id='puyuO'><q id='puyuO'><span id='puyuO'><b id='puyuO'><form id='puyuO'><ins id='puyuO'></ins><ul id='puyuO'></ul><sub id='puyuO'></sub></form><legend id='puyuO'></legend><bdo id='puyuO'><pre id='puyuO'><center id='puyuO'></center></pre></bdo></b><th id='puyuO'></th></span></q></dt></tr></i><div id='puyuO'><tfoot id='puyuO'></tfoot><dl id='puyuO'><fieldset id='puyuO'></fieldset></dl></div>

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

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

                  本文介绍了如何在 Java 中强制进行垃圾收集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以在 Java 中强制进行垃圾回收,即使这很棘手?我知道 System.gc();Runtime.gc(); 但他们只建议做 GC.如何强制 GC?

                  Is it possible to force garbage collection in Java, even if it is tricky to do? I know about System.gc(); and Runtime.gc(); but they only suggest to do GC. How can I force GC?

                  推荐答案

                  最好的选择是调用 System.gc() 这只是对垃圾收集器的提示,您希望它进行收集.尽管垃圾收集器是不确定的,但没有办法强制立即收集.

                  Your best option is to call System.gc() which simply is a hint to the garbage collector that you want it to do a collection. There is no way to force and immediate collection though as the garbage collector is non-deterministic.

                  这篇关于如何在 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 中的默认语言环境设置以使其保持一致?)
                    <tbody id='UD6fW'></tbody>
                1. <small id='UD6fW'></small><noframes id='UD6fW'>

                  1. <legend id='UD6fW'><style id='UD6fW'><dir id='UD6fW'><q id='UD6fW'></q></dir></style></legend>
                  2. <tfoot id='UD6fW'></tfoot>

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