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

P65关于参数-XX:MetaspaceSize,并不能指定初始空间大小 #181

Open
daleqq opened this issue Jul 18, 2022 · 0 comments
Open

P65关于参数-XX:MetaspaceSize,并不能指定初始空间大小 #181

daleqq opened this issue Jul 18, 2022 · 0 comments

Comments

@daleqq
Copy link

daleqq commented Jul 18, 2022

原文为:

-XX:MetaspaceSize : 指定元空间的初始空间大小

但根据官方文档描述如下:

Sets the size of the allocated class metadata space that will trigger a garbage collection the first time it is exceeded. This threshold for a garbage collection is increased or decreased depending on the amount of metadata used. The default size depends on the platform.

初始大小应该是JVM决定的,这个参数只控制GC的阈值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant