The current Metaspace chunk allocation policy allocates into four SmallChunks before starting to allocate into MediumChunks. When the metaspace for a ClassLoader has once started to allocate into MediumChunks it will continue to allocate into MediumChunks and never consider the SmallChunks, even though the alloc requests might only need a SmallChunk.
This might lead to unnecessary GCs and OOMEs.
This might lead to unnecessary GCs and OOMEs.
- duplicates
-
JDK-8081508 metaspace/shrink_grow/CompressedClassSpaceSize fails with OOM: Compressed class space
- Resolved
- relates to
-
JDK-8035964 The null class loader can "taint" VirtualSpaceNodes
- Closed