Confluence Re-indexing failed with java.lang.OutOfMemoryError: Java heap space

After upgrading to Confluence version 5.5.7 

Re-indexing is failing with below error.

java.lang.OutOfMemoryError: Java heap space
2015-04-18 04:41:37,766 ERROR [Indexer: 4] [] indexCollection Error indexing document
-- referer: http://xxxxxxxxxxxxxxx/admin/search-indexes.action | url: /admin/reindex.action | userName: xxxxxxx | action: reindex
java.lang.OutOfMemoryError: GC overhead limit exceeded

Please help me to resolve this.

Thanks in Advance.

2 answers

1 accepted

0 votes
Answer accepted

Hello Pavan,

Can you please let us know how much memory is allocated to Confluence? This configuration is set in the <confluence-install-directory>/bin/ file, for example:

-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+UseG1GC

In case you are running Confluence on a Windows as a service you'll need to check the service settings.



I Have increased the JVM Memory, it worked for me. Thank you :)

try adding  -XX:+UseConcMarkSweepGC to the JAVA_OPTS variable in the file. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

725 views 2 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