UNVERIFIED SOLUTION i
X

Resolve issue in Spectrum regading "CodeCache is full" warning in log file

Issue

An internal contact reported that they were receiving the warning:

INFO | jvm 1 | 2013/09/06 00:01:01 | Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
INFO | jvm 1 | 2013/09/06 00:01:01 | Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=

In the server.log while running Spectrum 8 SP2 and was curious as to what caused this warning and what could be done to resolve it.

Cause

This indicates an informational message and is not indicative of an actual problem.

Resolution

UPDATED: September 20, 2017


If one is concerned about a potential performance impact from their Code Cache being full, users could try increasing the size of their Code Cache and/or enabling Code Cache Flushing.
More information on this can be found at: http://blogs.atlassian.com/2012/05/codecache-is-full-compiler-has-been-disabled/
 
Spectrum server java options are set in %G1DCG%\server\bin\wrapper\wrapper.conf.

For example, users could try:

 
wrapper.java.additional.10=-XX:ReservedCodeCacheSize=512m
 
Or possibly:

 
wrapper.java.additional.10=-XX:ReservedCodeCacheSize=512m
wrapper.java.additional.11=-XX:+UseCodeCacheFlushing
 
Please note that allocating more resources to the Code Cache will of course mean that less resources are available for other uses. And thus, like all performance tuning, this is a balancing act.

Environment Details

Products affected: Spectrum™

Downloads

  • No Downloads