my java service old generation usage is always 100% when i use zgc - Stack Overflow

I upgraded the JDK version of my Java service to Java 21 and change the garbage collector from G1 to ZG

I upgraded the JDK version of my Java service to Java 21 and change the garbage collector from G1 to ZGC. Here are my startup parameters: -XX:+UseZGC -XX:+ZGenerational

Then I use the jstat -gcutil command to observe the GC status of the service, and I find that the old generation usage is always 100%.

The output result is as follows, I found that "O" has always been 100%. Why?

 S0     S1     E      O      M     CCS    YGC     YGCT     FGC    FGCT     CGC    CGCT       GCT   
     -      -  72.73 100.00  98.83  92.81   7782     0.278     -         - 10955     0.309     0.586
     -      -  72.73 100.00  98.83  92.81   7782     0.278     -         - 10955     0.309     0.586

I searched a lot of information, but I couldn't find the reason, and my service is also running normally now.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742302484a4418290.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信