java gc error,Java GC(分配失败)

Why it was always "GC (Allocation Failure)"?

Java HotSpot(TM) 64-Bit Server VM (25.25-b02) for linux-amd64 JRE (1.8.0_25-b17),

CommandLine flags:

-XX:CMSInitiatingOccupancyFraction=60

-XX:GCLogFileSize=10485760

-XX:+HeapDumpOnOutOfMemoryError

-XX:InitialHeapSize=32212254720

-XX:MaxHeapSize=32212254720

-XX:NewRatio=10

-XX:OldPLABSize=16

-XX:ParallelGCThreads=4

-XX:+PrintGC

-XX:+PrintGCDetails

-XX:+PrintGCTimeStamps

-XX:+PrintStringTableStatistics

-XX:+PrintTenuringDistribution

-XX:StringTableSize=1000003

-XX:SurvivorRatio=4

-XX:TargetSurvivorRatio=50

-XX:+UseCompressedClassPointers

-XX:+UseCompressedOops

-XX:+UseParNewGC

-XX:+UseConcMarkSweepGC

27.329: [GC (Allocation Failure) 27.329: [ParNew

Desired survivor size 44728320 bytes, new threshold 15 (max 15)

- age 1: 16885304 bytes, 16885304 total

: 349568K->16618K(436928K), 0.2069129 secs] 349568K->16618K(31369920K), 0.2070712 secs] [Times: user=0.78 sys=0.04, real=0.21 secs]

28.210: [GC (Allocation Failure) 28.210: [ParNew

Desired survivor size 44728320 bytes, new threshold 15 (max 15)

- age 1: 28866504 bytes, 28866504 total

- age 2: 12582536 bytes, 41449040 total

: 366186K->47987K(436928K), 0.2144807 secs] 366186K->47987K(31369920K), 0.2146024 secs] [Times: user=0.84 sys=0.01, real=0.22 secs]

29.037: [GC (Allocation Failure) 29.038: [ParNew

Desired survivor size 44728320 bytes, new threshold 2 (max 15)

- age 1: 28443488 bytes, 28443488 total

- age 2: 28386624 bytes, 56830112 total

- age 3: 12579928 bytes, 69410040 total

: 397555K->76018K(436928K), 0.2357352 secs] 397555K->76018K(31369920K), 0.2358535 secs] [Times: user=0.93 sys=0.01, real=0.23 secs]

解决方案

"Allocation Failure" is a cause of GC cycle to kick.

"Allocation Failure" means that no more space left in Eden to allocate object. So, it is normal cause of young GC.

Older JVM were not printing GC cause for minor GC cycles.

"Allocation Failure" is almost only possible cause for minor GC. Another reason for minor GC to kick could be CMS remark phase (if +XX:+ScavengeBeforeRemark is enabled).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值