码迷,mamicode.com
首页 > 其他好文 > 详细

The Garbage-First (G1) collector

时间:2019-02-02 19:00:03      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:sso   machines   ace   com   length   mos   through   free   orm   

The Garbage-First (G1) collector is a server-style garbage collector, targeted for multi-processor machines with large memories. It meets garbage collection (GC) pause time goals with a high probability, while achieving high throughput. The G1 garbage collector is fully supported in Oracle JDK 7 update 4 and later releases. The G1 collector is designed for applications that:

Can operate concurrently with applications threads like the CMS collector.
Compact free space without lengthy GC induced pause times.
Need more predictable GC pause durations.
Do not want to sacrifice a lot of throughput performance.
Do not require a much larger Java heap.

 

G1 is planned as the long term replacement for the Concurrent Mark-Sweep Collector (CMS). Comparing G1 with CMS, there are differences that make G1 a better solution. One difference is that G1 is a compacting collector. G1 compacts sufficiently to completely avoid the use of fine-grained free lists for allocation, and instead relies on regions. This considerably simplifies parts of the collector, and mostly eliminates potential fragmentation issues(碎片问题). Also, G1 offers more predictable garbage collection pauses than the CMS collector, and allows users to specify desired pause targets(设置预期停顿时间).

 

 

The Garbage-First (G1) collector

标签:sso   machines   ace   com   length   mos   through   free   orm   

原文地址:https://www.cnblogs.com/lnas01/p/10348955.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!