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

Confluence becomes unresponsive after some time

We are just trying out confluence and have version 5.8.5 installed using the internal database.

I'm noticing that after some time (not sure what the trigger is exactly), confluence becomes unresponsive from the browser. When I try to access the website, it just sits idle trying to connect the whole time...

However, I've noticed that the instance of java (jdk1.8.0-45), which is exclusively used by confluence, sits there spinning with a VERY HIGH load on the CPU.

The only thing that fixes the problem is if I run the and scripts to fire it up again.

What can I do to fix this?

5 answers

1 accepted

0 votes
Answer accepted

The fix:

In <confluence-install-dir>/bin/, I replaced

CATALINA_OPTS="-Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256m -XX:+UseG1GC ${CATALINA_OPTS}"


CATALINA_OPTS="-Xms1024m -Xmx1024m -XX:+UseG1GC ${CATALINA_OPTS}"

(i.e. remove the -XX:MaxMetaspaceSize=256m)


Confluence was running fine after that. It's been awhile and I forget how I got to this solution exactly, but probably something I saw in my previous posts' links.

If it help, I just noticed the following error at the bottom of the /logs/catalina.out file:

Exception in thread "Timer-0" java.lang.OutOfMemoryError: Metaspace
24-Jul-2015 15:19:40.254 SEVERE [http-nio-8090-exec-23]$SocketProcessor.doRun
 java.lang.OutOfMemoryError: Metaspace

I've also noted that this error was preceded with a string of WARNINGs regarding the cache such as the one below:

23-Jul-2015 10:32:40.989 WARNING [http-nio-8090-exec-6] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/template/custom/space-select.vm] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache


Seems to be a cache memory issue. How do I increase the maximum size of the cache?

  1. For the OutOfMemoryError problem, I'm following the instructions found here:
    to increase the heap memory. I will see if this helps solve the issue.
  2. The warnings are benign and are related to the newer version of Tomcat. See the following on how to silence the warnings:

The same happens with verison 5.8.2 and an external database (MS SQL). Most times it is possible to restart the (windows) service but from time to time, restarting the system is required. Increasing the heapsize to Xms - 1024m and Xmx - 1024m did not solve the problem.

Was there a solution found for this?

We're experiencing the same issue on our installation. Although, we're using Confluence 5.8.5, so definitely in need of an upgrade to latest version. Do you know if this was fixed in later releases?

Suggest an answer

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

2019: All Wrap(ped) Up Like a Present

Hindsight might be 2020 but looking back, a lot of cool new features rolled out in 2019. From new collaboration and organizational powers to fresh templates and handy integrations, it’s been quite th...

34,395 views 69 66
Read article

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