gpt4 book ai didi

java - CMS 垃圾收集日志中的 "Full GC Before GC"是什么意思?

转载 作者:行者123 更新时间:2023-12-01 15:29:35 27 4
gpt4 key购买 nike

我正在运行一个应用程序,在 Weblogic 上使用 java 5 和 CMS 垃圾收集器。在垃圾收集日志中,我看到了消息日志,其中大部分消息我可以使用 Sun 的 Java HotSpot 虚拟机中的内存管理文档和这篇有用的博客文章 (https://blogs.oracle.com/poonam/) 来理解。条目/understanding_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”一词让我担心:-)

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

最佳答案

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

关于java - CMS 垃圾收集日志中的 "Full GC Before GC"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9718930/

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