Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Tracing "java.lang.OutOfMemory" errors in Confluence 3.5

P February 26, 2013

What is the recommended approach to tracing out of memory exceptions thrown by confluence

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
William Zanchet [Atlassian]
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.
February 26, 2013

Hi Pratik,

For problems related with OutOfMemory erros, is pretty easy to fix, we just need to increase the JVM memory, to increase the JVM memory, here are the steps:

Linux:

> From <confluence-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.sh (you can create this file in the EAR/WAR version).
> Find the section JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=256m ...
> See Diagnosis above and enter the appropriate values. Xmx is maximum, Xms is minimum, and MaxPermSize is PermGen.

Windows:

> From <confluence-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.bat.
> Find the section set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m -XX:MaxPermSize=256m
> See Diagnosis above and enter the appropriate values. Xmx is maximum, Xms is minimum, and MaxPermSize is PermGen.


For more information, you can refer to this documentation: How to Fix Out of Memory Errors by Increasing Available Memory.

I hope this helps.

Cheers,

WZ

TAGS
AUG Leaders

Atlassian Community Events