Code cache

Alex Aisinzon aaisinzon at guidewire.com
Mon Apr 9 11:37:32 PDT 2012


I ran performance tests on one of our apps and saw the following error message in the GC logs:
Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=

I scaled up the code cache to 512MB (-XX:ReservedCodeCacheSize=512m) and markedly improved performance/scalability.

I have a few questions:

*         Is there a logging option that shows how much of the code cache is really used so that I find the right cache size without oversizing it?

*         What factors play into the code cache utilization? I would guess that the amount of code to compile is the dominant factor. Are there other factors like load: I would guess that some entries in the cache may get invalidated if not used much and load could be a factor in this.

I was running on Sun JVM 1.6 update 30 64 bit on x86-64.

Best

Alex A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20120409/5782b5d6/attachment.html 


More information about the hotspot-gc-use mailing list