Skip to content

JVM垃圾回收一节中晋升年龄问题 #672

@LoenDou

Description

@LoenDou

关于默认的晋升年龄是15,这个说法的来源大部分都是《深入理解Java虚拟机》这本书。
如果你去Oracle的官网阅读相关的虚拟机参数,你会发现在-XX:MaxTenuringThreshold=threshold这里有个说明,Sets the maximum tenuring threshold for use in adaptive GC sizing. The largest value is 15. The default value is 15 for the parallel (throughput) collector, and 6 for the CMS collector.
默认晋升年龄并不都是15,这个是要区分垃圾收集器的,CMS就是6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awesomeenhancementNew feature or request or suggestion

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions