首页 > 你假笨说JVM参数 > 你假笨JVM参数 – 006 ExplicitGCInvokesConcurrent

你假笨JVM参数 – 006 ExplicitGCInvokesConcurrent

2017年12月23日 发表评论 阅读评论

你假笨的第六次分享:

序号: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(),默认允许

小程序截图:

分享记录:

全文完,如果本文对您有所帮助,请花 1 秒钟帮忙点击一下广告,谢谢。

作 者: BridgeLi,https://www.bridgeli.cn
原文链接:http://www.bridgeli.cn/archives/498
版权声明:非特殊声明均为本站原创作品,转载时请注明作者和原文链接。
  1. 本文目前尚无任何评论.

请输入正确的验证码