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
Accepted answer

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
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

68 views 3 2
Join discussion

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