After switching to OpenJDK 21, we noticed the growing CodeCache.
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?