gpt4 book ai didi

garbage-collection - JVM PrintGCApplicationConcurrentTime 和 PrintGCApplicationStoppedTime 标志

转载 作者:行者123 更新时间:2023-12-04 04:16:13 24 4
gpt4 key购买 nike

我正在运行一个 Java 程序,我需要了解每个程序在垃圾收集上花费了多少时间。
我找到了这两个 JVM 标志:-XX:+PrintGCApplicationConcurrentTime
-XX:+PrintGCApplicationStoppedTime

但我无法找到有关它的信息。
我想 PrintGCApplicationStoppedTime打印应用程序时间在 STW 中的时间,但是我不确定 -XX:+PrintGCApplicationConcurrentTime .它是否打印应用程序与收集线程同时执行的时间?

提前致谢。

最佳答案

这些标志的名称不是很准确。
PrintGCApplicationStoppedTime显示应用程序在安全点停止的时间。大多数情况下,安全点是由垃圾收集的停止世界阶段引起的,但是,many other reasons exist .
PrintGCApplicationConcurrentTime是应用程序不间断运行的时间,即两个连续安全点之间的时间。

关于garbage-collection - JVM PrintGCApplicationConcurrentTime 和 PrintGCApplicationStoppedTime 标志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35851888/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com