Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

My servers are throwing a 'Java Virtual Machine : Code Cache Memory' alert.

My Confluence_6.12.1 & Jira_7.12.3 servers are throwing alerts in Troubleshooting and support tools, identifying in 'Instance health' that a problem was detected with the Java Virtual Machine > Code Cache Memory

The information provided on both servers regarding this issue is identical.


===CONFLUENCE: On review of the link for 'How can I resolve this?'

The above resolution specifies increasing the ReservedCodeCacheSize property to 384, and on review of the $CONFLUENCE_INSTALL/bin/ file, this is an easy modification to make.

My server is configured with the following, which can be changed from;

CATALINA_OPTS="-XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing ${CATALINA_OPTS}"

to the following;

CATALINA_OPTS="-XX:ReservedCodeCacheSize=384m -XX:+UseCodeCacheFlushing ${CATALINA_OPTS}"


===JIRA: On review of the link for 'How can I resolve this?'

It mentions that as of Jira 7.13 and beyond (which I am not operating on), this property is set to 512 MB by default in the $JIRA_INSTALL/bin/ file.


On review of my Jira v7.12.3 server, this option is not present as it was in Confluence v6.12.1, though there is an entry for CATALINA_OPTS, which feeds from GC_JVM_PARAMETERS.


As I prefer operating within expected parameters and appropriate form during configuration; Is there an appropriate place to fit this configuration?

Operating Hypothesis;

Append the below lines to on Jira v7.12.3 {

CATALINA_OPTS="-XX:ReservedCodeCacheSize=512m ${CATALINA_OPTS}"





Identifying that this may be erroneous, for either or both, of our instances for 10 users, which should not be significantly constrained by RAM, and that are operating within constrained resources, how can I determine the impact of this issue, AS WELL AS that of its' solution?

2 answers

Also, I am curious how this error is resolved, as the machine is not under any load at present, yet this message appears in its health check regardless, so I suspect it is visible because of a log entry, not because of operating environment limitations, and to clear it would require removing the logs?

0 votes
Brant Schroeder Community Leader Nov 22, 2019


  If you update the app you should no longer see the issue.  I believe you are just dealing with a bug that Atlassian is working to resolve.  Here are the notes from the latest update:  Remove JVM Code Cache Healthcheck that was introduce in ATST version 1.21.0

I note that this article;
'Starting from 7.13, this property is set to 512 MB by default in'

And noting that my server is running 7.12.3, I am still curious if the suggested appended lines are practical, or if they are unnecessary on v7.12.3, in particular as this value may have no meaning in a future update;

CATALINA_OPTS="-XX:ReservedCodeCacheSize=512m ${CATALINA_OPTS}"


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

335 views 23 8
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you