Duplicate :
|
|
Relates :
|
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.
|