CodeCache is getting full after moving to OpenJDK 21

139 Views Asked by At

After switching to OpenJDK 21, we noticed the growing CodeCache.

enter image description here

This is the application running with G1GC without the FullGC, we don't have this problem with ParallelGC. I come across this issue: https://bugs.openjdk.org/browse/JDK-8290025 If I understand it correctly, CodeCache Sweeper was disabled and the cleanup job is only in Full GC in G1GC?

Affected parts of Segmented CodeCache: non-profiled nmethod and profiled nmethod

Have you encountered the same problem in G1GC with OpenJDK 21?

0

There are 0 best solutions below