Skip to content

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

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.

Activity

  1. Snailclimb commented on Mar 6, 2020

    @Snailclimb
    Owner

    嗯嗯 感谢老哥!这部分大家确实都是参考《深入理解Java虚拟机》这本书的!

    已经更新:

    Screen Shot 2020-03-06 at 8 51 33 AM

  2. ambition0802 commented on Dec 24, 2020

    @ambition0802
    Contributor

    太细节了,这位大兄弟,点赞。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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