【问题标题】:A list of Hotspot VM Operations with descriptions带有描述的 Hotspot VM 操作列表
【发布时间】:2019-11-18 16:50:58
【问题描述】:

Java Hotspot VM 可以执行许多不同的 VM 操作。在调试安全点时间时,了解安全点的用途是很有用的。其中一些是显而易见的:G1IncCollectionPauseFindDeadlocks,但有些不是:CGC_Operationno vm operation。有 VMOps.java,但它只列出可能的值,而不是它们的含义。

目前,我需要知道CGC_Operation 在 G1GC 的上下文中做了什么。我怀疑它与 ConcurrentGCThread 和 Old gen 集合有关,但我想确认并有一些参考以寻找其他操作。

例子:

-XX:+PrintSafepointStatistics
...
128959.961: G1IncCollectionPause [ 2636 0 1 ] [ 0 0 0 15 52 ] 0
129986.695: G1IncCollectionPause [ 2637 0 0 ] [ 0 0 0 12 51 ] 0
137019.250: G1IncCollectionPause [ 2636 0 0 ] [ 0 0 0 13 50 ] 0
138693.219: CGC_Operation [ 2636 0 0 ] [ 0 0 0 13 338 ] 0
138726.672: G1IncCollectionPause [ 2636 0 0 ] [ 0 0 0 13 50 ] 0
138733.984: G1IncCollectionPause [ 2636 0 1 ] [ 0 0 0 13 50 ] 0
138738.750: G1IncCollectionPause [ 2636 0 0 ] [ 0 0 0 13 62 ] 0

【问题讨论】:

  • @Holger 谢谢,但这有点不同。我需要operations,而不是options
  • When the documentation of the options, including the one which produces the output, doesn’t lead to a documentation of the output, I’m afraid, there is no documentation.

标签: java jvm-hotspot g1gc


【解决方案1】:

最好的(可能是唯一的)文档是源代码。幸运的是,HotSpot JVM 源代码得到了很好的评论。

src/share/vm/gc_implementation/g1/vm_operations_g1.hpp:

// Concurrent GC stop-the-world operations such as remark and cleanup;
// consider sharing these with CMS's counterparts.
class VM_CGC_Operation: public VM_Operation {

no vm operation 表示用于各种清理活动的特殊类型的周期性安全点,请参阅this answer

【讨论】:

  • 谢谢,应该可以了。我试图在网上搜索它,但它没有用。也许在 Skara 之后会更好。
猜你喜欢
  • 1970-01-01
  • 2020-06-18
  • 1970-01-01
  • 2020-07-06
  • 2019-04-23
  • 2021-09-13
  • 1970-01-01
  • 1970-01-01
  • 2011-06-18
相关资源
最近更新 更多