Java GC (Allocation Failure)

前端 未结 3 1064
故里飘歌
故里飘歌 2020-11-29 18:44

Why always \"GC (Allocation Failure)\"?

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

CommandLi         


        
3条回答
  •  悲哀的现实
    2020-11-29 19:12

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

    "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).

提交回复
热议问题