为了账号安全,请及时绑定邮箱和手机立即绑定

Java垃圾回收-新阈值

Java垃圾回收-新阈值

守着一只汪 2021-04-26 12:14:23
我认为,年轻一代中的对象必须在升级为旧一代或终身一代之前必须通过15次GC(最多15个)的测试。新阈值是什么意思,它将如何影响JVM新一代GC或次要GC?这是否意味着Young Generation的大小不足以使JVM在对象上执行15 GC?在下面的示例中,新阈值是10。这是否意味着我必须增加堆大小,特别是在年轻一代中?Desired survivor size 121634816 bytes, new threshold 10 (max 15)PSAdaptiveSizePolicy::compute_eden_space_size: costs minor_time: 0.004921 major_cost: 0.047628 mutator_cost: 0.947450 throughput_goal: 0.990000 live_space: 330899520 free_space: 1115684864 old_eden_size: 419430400 desired_eden_size: 436207616AdaptiveSizePolicy::survivor space sizes: collection: 28 (125829120, 113246208) -> (125829120, 121634816) AdaptiveSizeStop: collection: 28 [PSYoungGen: 421856K->10080K(532480K)] 785165K->373389K(1269760K), 0.0312765 secs] [Times: user=0.25 sys=0.00, real=0.03 secs] 2018-07-04T02:09:01.886+0800: 359.263: [GC (Allocation Failure) AdaptiveSizePolicy::update_averages:  survived: 4587536  promoted: 0  overflow: falseAdaptiveSizeStart: 359.286 collection: 29   avg_survived_padded_avg: 111951304.000000  avg_promoted_padded_avg: 43516000.000000  avg_pretenured_padded_avg: 41.070663  tenuring_thresh: 11  target_size: 113246208
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 201 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信