Does java garbage collection log entry “Full GC (System)” mean some class called System.gc()?

前端 未结 2 2137
栀梦
栀梦 2020-12-08 20:22

What does \"Full GC (System)\" entry in the garbage collection logs mean? That some class called System.gc() ?

My garbage collection logs has two different entry typ

2条回答
  •  被撕碎了的回忆
    2020-12-08 20:56

    I test explicit GC on my mac, it do show "Full GC (System)" when using jdk 1.6, but show "Full GC" with jdk 1.7

    So don't rely on the "System" label when you tuning GC log unless you know exactly about running environment and jdk version number

提交回复
热议问题