性能话题>G1EagerReclaimHumongousObjectsWithStaleRefs 参数讨论专区>

G1EagerReclaimHumongousObjectsWithStaleRefs 参数讨论专区

欢迎来到 JVM 参数G1EagerReclaimHumongousObjectsWithStaleRefs的讨论专区

参数名称

G1EagerReclaimHumongousObjectsWithStaleRefs

取值类型

boolean

参数说明

Try to reclaim dead large objects that have a few stale references at every young GC.

用法及建议

  • G1EagerReclaimHumongousObjectsWithStaleRefs必须配合参数-XX:+UnlockExperimentalVMOptions使用,并且只能加在其后才能生效
  • 你可以通过-XX:+G1EagerReclaimHumongousObjectsWithStaleRefs开启,或者-XX:-G1EagerReclaimHumongousObjectsWithStaleRefs关闭

默认值

平台/版本 JDK6 JDK7 JDK8
Linux true true true
MacOS true true true
Windows true true true

关于该参数的使用,您有什么心得体会或者疑问吗?欢迎在下方参与讨论 ↓

点赞
5667 阅读
请先登录,感受更多精彩内容
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步