<small id='1YQ0p'></small><noframes id='1YQ0p'>

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

    1. <legend id='1YQ0p'><style id='1YQ0p'><dir id='1YQ0p'><q id='1YQ0p'></q></dir></style></legend>
        <bdo id='1YQ0p'></bdo><ul id='1YQ0p'></ul>
    2. Java:GarbageCollectorMBean.getCollectionTime 是否返回暂停时间或其他?

      Java: does GarbageCollectorMBean.getCollectionTime return pause time or something else?(Java:GarbageCollectorMBean.getCollectionTime 是否返回暂停时间或其他?)
      • <bdo id='Ltaxl'></bdo><ul id='Ltaxl'></ul>

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

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

            • <tfoot id='Ltaxl'></tfoot>
                  <tbody id='Ltaxl'></tbody>
              1. 本文介绍了Java:GarbageCollectorMBean.getCollectionTime 是否返回暂停时间或其他?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                Oracle 的 javadoc for GarbageCollectorMBean.getCollectionTime 说,以毫秒为单位返回近似的累积收集经过时间."这是任何垃圾收集器线程所花费的具体暂停时间还是一般时间?

                Oracle's javadoc for GarbageCollectorMBean.getCollectionTime says, "Returns the approximate accumulated collection elapsed time in milliseconds." Is that specifically pause time or generally time spent by any of the garbage collector threads?

                推荐答案

                GarbageCollectorMBean.getCollectionTime() 返回特定算法的累积挂钟时间,以毫秒为单位.

                GarbageCollectorMBean.getCollectionTime() return cumulative wall clock time in milliseconds for specific algorithm.

                对于 Stop-the-World 算法(通常是年轻的集合),这可以解释为时间应用程序暂停.

                For Stop-the-World algorithms (young collections usually) this could be interpreted as time application was paused.

                对于并发算法,该值完全无用,因为它不是 STW 时间,也不是 CPU 时间(算法可能使用多个线程,但会计算挂钟时间).

                For concurrent algorithms that value is perty useless, because it is not STW time and it is not CPU time (algorithm may use multiple threads, but wall clock time would be calculated).

                GC 算法消耗的正确 CPU 时间可以从性能计数器(这里是读取这些计数器的代码示例).

                Correct CPU time consumed by GC algorithm could be retrieved from performance counters (here is example of code reading these counters).

                这篇关于Java:GarbageCollectorMBean.getCollectionTime 是否返回暂停时间或其他?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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?(为什么是锯齿形图形?)

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

                  <tbody id='uaGrU'></tbody>
                    <legend id='uaGrU'><style id='uaGrU'><dir id='uaGrU'><q id='uaGrU'></q></dir></style></legend>

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