<tfoot id='HYKt5'></tfoot>
    1. <small id='HYKt5'></small><noframes id='HYKt5'>

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

      1. <legend id='HYKt5'><style id='HYKt5'><dir id='HYKt5'><q id='HYKt5'></q></dir></style></legend>
        • <bdo id='HYKt5'></bdo><ul id='HYKt5'></ul>

      2. 垃圾收集何时在 Java 中工作?

        时间:2023-08-24
          <bdo id='iNrex'></bdo><ul id='iNrex'></ul>
        • <small id='iNrex'></small><noframes id='iNrex'>

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

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

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

                  问题描述

                  我知道有很多关于java垃圾收集的文章,但是搜索后我不知道什么时候在java应用程序中运行垃圾收集?(当应用程序重新启动或仍在运行时)".

                  I knew that there are a lot of articles about java garbage collection but after searching I don't know exactly "when dose the garbage collection run in a java application?(when the application restart or while it still running)".

                  推荐答案

                  Garbage Collector 是一个守护线程.一个守护线程在应用程序后面运行.它由JVM启动.这当所有非 dameon 线程停止时,线程停止.

                  Garbage Collector is a dameon thread. A dameon thread runs behind the application. It is started by JVM. The thread stops when all non-dameon threads stop.

                  JVM 控制垃圾收集器;它决定何时运行垃圾收集器.JVM 运行当垃圾收集器意识到内存不足时.GC的行为可以通过将参数传递给 JVM 进行调整.

                  The JVM controls the Garbage Collector; it decides when to run the Garbage Collector. JVM runs the Garbage Collector when it realizes that the memory is running low. The behavior of GC can be tuned by passing parameters to JVM.

                  可以请求垃圾收集从在 java 程序中,但不能保证此请求将由jvm.Check 如何在Java中强制垃圾回收?

                  One can request the Garbage Collection to happen from within the java program but there is no guarantee that this request will be taken care of by jvm.Check How to force garbage collection in Java?

                  了解更多..

                  这篇关于垃圾收集何时在 Java 中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:JVM 是否会收集不再使用的局部变量引用的对象? 下一篇:JDBC 垃圾回收

                  相关文章

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

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

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

                      <tfoot id='i6bwE'></tfoot>