Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
LoenDou opened this issue Mar 5, 2020 · 2 comments
Closed

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

LoenDou opened this issue Mar 5, 2020 · 2 comments
Labels
awesome enhancement New feature or request or suggestion

Comments

@LoenDou
Copy link

LoenDou commented Mar 5, 2020

关于默认的晋升年龄是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.

@Snailclimb
Copy link
Owner

Snailclimb commented Mar 6, 2020

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

已经更新:

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

@Snailclimb Snailclimb added awesome enhancement New feature or request or suggestion labels Mar 6, 2020
@ambition0802
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awesome enhancement New feature or request or suggestion
Projects
None yet
Development

No branches or pull requests

3 participants