简体   繁体   中英

Java 8 Metaspace - Avoid decrease

I've got a short question due to Metaspace in Java 8. I know that I can set an initial size with the -XX:MetaspaceSize - Parameter. But I wonder if it's possible to configure that this value will be the minimum size.

My target is to prevent Full GCs due to Metaspace sizing. Usually 512 MB should be enough Metaspace for my application, but this value can differ over runtime. If more than 512 MB are needed (which should not happen) a Full GC can't be avoided, that's clear.

Regards, Mathias

设置MaxMetaspaceFreeRatio=100应该可以防止它收缩

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM