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


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.


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


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:

Or possibly:

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™