【问题标题】:What Does "Full GC Before GC" mean in CMS Garbage Collection Logs?CMS 垃圾收集日志中的“Full GC Before GC”是什么意思?
【发布时间】:2012-03-15 11:40:03
【问题描述】:

我正在运行一个应用程序,在 Weblogic 上使用 java 5 和 CMS 垃圾收集器。在垃圾收集日志中,我看到了消息日志,其中大部分我可以理解使用 Sun 的 Java HotSpot 虚拟机中的内存管理文档和这个有用的博客条目 (https://blogs.oracle.com/poonam/条目/理解_cms_gc_logs)。

但是,有些条目是这样的:

124525.178: [Full GC Before GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 353610889
Max   Chunk Size: 353610889
Number of Blocks: 1
Av.  Block  Size: 353610881
Tree      Height: 1
Statistics for IndexedFreeLists:
--------------------------------
Total Free Space: 4190038
Max   Chunk Size: 256
Number of Blocks: 37181
Av.  Block  Size: 119
 free=357800921 frag=0.0233
Before GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 0
Max   Chunk Size: 0
Number of Blocks: 0
Tree      Height: 0
Statistics for IndexedFreeLists:
--------------------------------
Total Free Space: 0
Max   Chunk Size: 0
Number of Blocks: 0
 free=0 frag=0.0000

我已经通过 HPjmeter 运行了该文件,似乎没有任何问题,但是“full gc”这个词让我担心:-)

“Full GC before GC”是什么意思,它是一个 stop-the-world 事件吗?

【问题讨论】:

    标签: java content-management-system garbage-collection


    【解决方案1】:

    您在同一行看到两条消息 Full GC 表示它正在启动 Full GC。 Before GC 表示它正在转储系统启动前的状态。

    【讨论】:

    • 啊,有道理。 Full GC(我猜是stop-the-world)持续时间是“After GC”部分之后的数字?
    猜你喜欢
    • 1970-01-01
    • 2012-11-26
    • 1970-01-01
    • 1970-01-01
    • 2011-10-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-02
    • 1970-01-01
    相关资源
    最近更新 更多