CodeCache is full. Compiler has been disabled.

I'm getting "CodeCache is full. Compiler has been disabled" messages in the log.

I've read and -XX:+UseCodeCacheFlushing I still get these errors.

Any Idea what is causing such a huge amount of code?

Could it be the ScriptRunner? Isn't that continuously compiling groovy?

2 answers

1 accepted

2 votes
Henning Tietgens Community Champion Apr 23, 2013

I don't know who is responsible for the code cache usage, but I raised the code cache to 256 MB and didn't have this errors anymore. Just add -XX:ReservedCodeCacheSize=256m to the JVM_REQUIRED_ARGS within your file.

Additionally I wrote a Script Runner service which logs the Code Cache Size to enable me to see the history: "Code Cache Usage: ${{it.getName()=='Code Cache'}.getUsage()}"

Maybe you want to reduce the ReservedCodeCacheSize after some time monitoring the logs.


Nice... alternatively you could use some monitoring tool that can use JMX to get this info and chart it etc. Maybe JavaMelody has it - although I don't think so.

2 votes

We've done this to death... check

You may be using another version of groovy.

If not just bump the permgen and XX:ReservedCodeCacheSize as per the question above.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

685 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you