Experiencing occasional long garbage collection delays, why?

前端 未结 13 1051
后悔当初
后悔当初 2021-02-04 06:26

I\'m having a hard time dealing with a Java garbage collection problem, and interpreting the logs.

My application requires that no GC takes longer than 2 seconds, and id

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 07:16

    for me problem was full survivor spaces. As CMS isn't compactional, garbage was promoted directly to old gen. this could be very expensive with such large heap. It's necessary to increase Survivor spaces and MaxTenuringThreshold to avoid promotion as much as possible.

    regards, Alex

提交回复
热议问题