Increase heap size for confluence version 6.0.1



We have encountered OutOfMemory error Java heap Space. Confluence hangs or behaves unexpectedly not accessible. the atlassian-confluence.log contain an error message like:

 Caused by: java.lang.OutOfMemoryError: Java heap space


Our Current config on the setenv.bat is like this.

set CATALINA_OPTS=-Xms1024m -Xmx1024m -XX:+UseG1GC %CATALINA_OPTS%

2 answers

0 vote
Mizan Community Champion Oct 18, 2017

Since when are you facing this issue ?

At what time you encounter this error ?

How often you have encountered this issue ?

Do you suspect any operation which might have caused this ?


! GB heap comes by default (consider it as a setting suitable for evaluating Confluence) , however as the instance grows you might need to increase the heap size.

There are various factors which may cause a out of memory error.

Newly installed plugin , some memory hungry operation , increased usage , etc

In your case I would recommend increasing the memory to 1.5 GB and observe how the instance behave. 

If you still face issues. increase it to 2 GB . 

If you still face the issue it might be possible that something is causing a memory leak. And you will need to investigate further.

Hi Mizan,


Thanks for the quick reply.

Since last Sunday Afternoon and yesterday around 6pm. then I decided to investigate what cause the downtime, and I find the error java heap space,.

I just want to ask if is okay to increase the memory to 1.5GB from Confluence 6.0.1 version. is this compatible.

Mizan Community Champion Oct 18, 2017

Yes, set -Xms1500m -Xmx1500m , There should not be a problem if there is available hardware resources. What makes you think it may not be compatible ?


1020m and even 1500m is not enough for Confluence 6.*

Please read more about hardware requirements here

It will work fine for with 1Gb.  For a small number of users ($10 licence at most) and with collaborative editing disabled.

Agree, but collaborative editing is one of the most useful features of Confluence 6. What is the reason of using Confluence 6 without it?

Mizan Community Champion Oct 19, 2017

Collaborative editing has its own memory configurations .

1GB should be enough in many cases. Infact many new installations use this configuration for many days then realize they need to increase the heap, which I suspect is the case for this issue.

I have 70 users..  is 1GB should be enough? 

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 Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

86 views 0 6
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