You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specify a higher value for the option MetaspaceSize to avoid early garbage collections induced for class metadata. The amount of class metadata allocated for an application is application-dependent and general guidelines do not exist for the selection of MetaspaceSize. The default size of MetaspaceSize is platform-dependent and ranges from 12 MB to about 20 MB.
voidMetaspaceGC::initialize() {
// Set the high-water mark to MaxMetapaceSize during VM initializaton since// we can't do a GC during initialization._capacity_until_GC=MaxMetaspaceSize;
}
JVM 参数章节 jvm-parameters-intro.md: L98 中提到:
-XX:MetaspaceSize=N #设置 Metaspace 的初始(和最小大小)
此处解释错误,即 Metaspace 的初始大小非由
-XX:MetaspaceSize
设置。参见 Oracle 官方文档 Other Considerations 中提到:
可见
-XX:MetaspaceSize
是一个提前设定的阈值,会触发 GC,那一定不是初始大小。通过实验证实 Metaspace 的初始大小非由
-XX:MetaspaceSize
设置,而是会引起 Full GC,过程详见:JVM 参数 MetaspaceSize 的误解
The text was updated successfully, but these errors were encountered: