Confluence Docs 3.3 : How to get a Java Heap Dump
This page last changed on Feb 28, 2010 by pkamal.
Getting the heap dumpIf 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 For example: 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.
Setting the Memory SettingsHow to set the heap or permanent generation memory depends on your distribution, platform, and how you start Confluence. Refer to Configuring System Properties.
|
![]() |
Document generated by Confluence on Jul 09, 2010 01:11 |