请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

怎么看堆的存活对象占比超过百分之50,才能启用G1

怎么看堆的存活对象占比超过百分之50,才能启用G1

正在回答 回答被采纳积分+3

1回答

若鱼1919 2019-11-05 13:00:28

Applications running today with either the CMS or the with parallel compaction would benefit from switching to G1 if the application has one or more of the following traits.

More than 50% of the Java heap is occupied with live data.

The rate of object allocation rate or promotion varies significantly.

The application is experiencing undesired long garbage collection or compaction pauses (longer than 0.5 to 1 second).

没有说只有超过50%才可以启用

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信