Sizing Metaspace
MaxMetaspaceSize and CompressedClassSpaceSize are our knobs to control Metaspace size.
Now, these parameters can be a tad confusing. For one, there are two of them, and they have subtly different meanings, and they influence each other.
So lets take a closer look. We will explain how those parameters work in detail. Then, we will analyze how much Metaspace a single class on average needs. Finally, we will attempt to derive some rough rules of thumb and also examine what the default behavior is.
Read more...