Getting the heap dump

If you hit the java.lang.OutOfMemoryError: Java Heap Space and you have elminated the usual causes you may need to get a Java heap dump, to determine the cause.

To get a heap dump add the -XX:+HeapDumpOnOutOfMemoryError parameter to your JAVA_OPTS

例:

JAVA_OPTS="-Xms128m -Xmx1024m -XX:MaxPermSize=192m -XX:+HeapDumpOnOutOfMemoryError $JAVA_OPTS -Djava.awt.headless=true "

Next reproduce the out of memory error.

The next time you have an out of memory error, a *.hprof file will be created that is approximately the size of your java heap, i.e. 1024m (according to the above example).

Please wait till its completely written out (before restarting confluence) and attach a zip of this dump to your support case.

Please note that your -Xmx should not be bigger than 1536m otherwise it is near impossible to open the heap dump.

Setting the Memory Settings

How to set the heap or permanent generation memory depends on your distribution, platform, and how you start Confluence. Refer to Configuring System Properties.

If you're starting Confluence from a Windows Service, make sure you add the properties through the registry settings.

To verify if your settings have been picked up, check Displaying System Properties.

  • ラベルなし