性能问答>【已结算】CMS垃圾收集器的在内存阈值未到的情况下被触发,并且触发的是非正常的一个CMS回收过程的问题【赏金20元】>
12回复

【已结算】CMS垃圾收集器的在内存阈值未到的情况下被触发,并且触发的是非正常的一个CMS回收过程的问题【赏金20元】



JDK:1.8.0_201
Linux: centos
CMS参数:–XX:+CMSClassUnloadingEnabled -XX:CMSFullGCsBeforeCompaction=3 -XX:CMSInitiatingOccupancyFraction=75 -XX:+CMSParallelInitialMarkEnabled -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+UseCMSInitiatingOccupancyOnly

回收日志:

{Heap before GC invocations=2913 (full 17):
par new generation total 2184576K, used 904291K [0x00000006a0800000, 0x0000000740800000, 0x0000000740800000)
eden space 1747712K, 45% used [0x00000006a0800000, 0x00000006d11cba98, 0x000000070b2c0000)
from space 436864K, 24% used [0x0000000725d60000, 0x000000072c6ad230, 0x0000000740800000)
to space 436864K, 0% used [0x000000070b2c0000, 0x000000070b2c0000, 0x0000000725d60000)
concurrent mark-sweep generation total 2621440K, used 1932556K [0x0000000740800000, 0x00000007e0800000, 0x00000007e0800000)
Metaspace used 159537K, capacity 174878K, committed 178176K, reserved 1206272K
class space used 17637K, capacity 19942K, committed 20480K, reserved 1048576K
2022-10-02T08:03:26.856+0800: 295038.788: [GC (Allocation Failure)

2022-10-02T08:03:26.856+0800: 295038.788: [CMS: 1932556K->1291301K(2621440K), 2.9387890 secs] 2836847K->1291301K(4806016K), [Metaspace: 159537K->159537K(1206272K)], 2.9393229 secs] [Times: user=2.94 sys=0.00, real=2.94 secs]
Heap after GC invocations=2914 (full 18):
par new generation total 2184576K, used 0K [0x00000006a0800000, 0x0000000740800000, 0x0000000740800000)
eden space 1747712K, 0% used [0x00000006a0800000, 0x00000006a0800000, 0x000000070b2c0000)
from space 436864K, 0% used [0x0000000725d60000, 0x0000000725d60000, 0x0000000740800000)
to space 436864K, 0% used [0x000000070b2c0000, 0x000000070b2c0000, 0x0000000725d60000)
concurrent mark-sweep generation total 2621440K, used 1291301K [0x0000000740800000, 0x00000007e0800000, 0x00000007e0800000)
Metaspace used 159537K, capacity 174878K, committed 178176K, reserved 1206272K
class space used 17637K, capacity 19942K, committed 20480K, reserved 1048576K
}

新生代,老年代均未达到阈值,想求教一下,这种情况是什么原因造成的?

870 阅读
请先登录,查看12条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步