如果属于那种瞬间创建大量对象而后抛弃成为垃圾对象的应用,推荐使用gencon 垃圾回收模式每一种GC策略使用场景的描述,请参考如下说明:(由于时间问题,就直接粘贴英文了)What is the difference between the GC policies gencon, optavgpause, subpool,and optthruput?optthruput...
显示全部如果属于那种瞬间创建大量对象而后抛弃成为垃圾对象的应用,推荐使用gencon 垃圾回收模式
每一种GC策略使用场景的描述,请参考如下说明:(由于时间问题,就直接粘贴英文了)
What is the difference between the GC policies gencon, optavgpause, subpool,
and optthruput?
optthruput disables concurrent mark. If you do not have pause time problems
(indicated by erratic application response times), you can expect to get the best
throughput with this option.
optavgpause enables concurrent mark. If you have problems with erratic
application response times in garbage collection, you can alleviate them at the
cost of some throughput when running with this option.
gencon requests the combined use of concurrent and generational GC to help
minimize the time that is spent in any garbage collection pause.
subpool disables concurrent mark but employs an object allocation algorithm
that is more suitable for multiple processor systems, commonly 16 processors
or more. Applications that must scale on large systems can benefit from this
policy. This policy is available on AIX, Linux PPC and zSeries, z/OS, and
i5/OS only.
收起