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

MarkSweepDeadRatio 参数讨论专区

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

参数名称

MarkSweepDeadRatio

取值类型

unsigned int

参数说明

Percentage (0-100) of the old gen allowed as dead wood. Serial mark sweep treats this as both the minimum and maximum value. CMS uses this value only if it falls back to mark sweep. Par compact uses a variable scale based on the density of the generation and treats this as the maximum value when the heap is either completely full or completely empty. Par compact also has a smaller default value; see arguments.cpp.

用法及建议

  • 使用该参数的正确姿势是-XX:MarkSweepDeadRatio=___

默认值

平台/版本 JDK6 JDK7 JDK8
Linux 1 1 1
MacOS 5 1 1
Windows 5 1 1

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

点赞
6807 阅读
请先登录,查看1条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步