1查看默认垃圾收集器是哪个

 

 

垃圾收集器种类以及组合使用

Serial + Serial Old  (新生代串行 老年代串行)

ParNew + Serial Old (新生代并行回收  老年代串行)

Parallel + Parallel Old (新生代并行  老年代并行)

CMS+Serial Old (作为CMS出错的后备收集器) + ParNew 

G1

 

G1 比CMS优势

1.G1不会产生碎片

2.可以精确控制停顿

 

posted on 2020-05-07 12:26  晴空半岛  阅读(115)  评论(0编辑  收藏  举报