Java Concurrent and Parallel GC

前端 未结 6 2032
后悔当初
后悔当初 2020-12-22 21:07

This article here suggests to use -XX:+UseParNewGC \"To enable a parallel young generation GC with the concurrent GC\".

My confusion is that in order

6条回答
  •  情话喂你
    2020-12-22 21:57

    ParNew is the default young generation collector when CMS is used.You just have to specify -XX:+UseConcMarkSweepGC to use CMS and ParNew will be used by default. CMS is a good collector if avoiding GC jitters is of higher priority but if throughput is more important for eg for a batch like job the default SUN parallel collector does a better job.

提交回复
热议问题