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

Pavan Kumar April 20, 2015

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] [confluence.search.lucene.ReindexWorkBatch] 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
Mallmann
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 21, 2015

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/setenv.sh 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.

 

Eduardo

Pavan Kumar April 21, 2015

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

0 votes
Panos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 20, 2015

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events