知识库--GC+CMS(70)

来源:互联网 发布:网络小项目加盟 编辑:程序博客网 时间:2024/05/18 02:35

Concurrent Mark-Sweep (CMS) Collector

For many applications, end-to-end throughput is not as important as fast response time. Young generation collections do not typically cause pauses. Howerver, old generation collections, through infrequent, can impose long pauses, especially when large heaps are involved. To address this issue, the HotSpot JVM includes a collector called the concurrent mark-sweep collector, also known as the low-latency collector.(CMS)

//增量模式
Incremental Model
The CMS collector can be used in which the concurrent phases are done incrementally. This model is meant to lessen the impact of long concurrent phases by periodically stopping the concurrent phase to yield back processing to the application. The work done by the collector is divided into small chunks of time that are scheduled by between young generation collections. This feature is useful when applications that need the low pause times provided by the concurrent collector are run on machines with small numbers of processors.

0 0