你假笨的第六次分享:

序号:006
时间:2017-07-31
参数:-XX:ExplicitGCInvokesConcurrent
含义:
Enables invoking of concurrent GC by using the System.gc() request.
This option is disabled by default and can be enabled only together with the -XX:+UseConcMarkSweepGC option.
System.gc()是正常FULL GC,会STW
打开此参数后,在做System.gc()时会做background模式CMS GC,即并行FULL GC,可提高FULL GC效率
注,该参数在允许systemGC且使用CMS GC时有效
举例:
-XX:+ExplicitGCInvokesConcurrent
相关参数:
-XX:DisableExplicitGC 控制是否允许System.gc(),默认允许

小程序截图:

分享记录: