Difference between revisions of "Enabling Out Of Memory Dumps"

(Created page with "In some situations a OOM dump contains valuable information. By default this feature is not enabled. If you are experiencing problems and run into Out Of Memory Errors, please en...")
(No difference)

Revision as of 15:58, 10 October 2011

In some situations a OOM dump contains valuable information. By default this feature is not enabled. If you are experiencing problems and run into Out Of Memory Errors, please enable this function.

Note: a dump is as big as the memory of the virtual java machine. So make sure that you save them to a place where enough free storage space is available (for more than one dump).

change the file /opt/open-xchange/etc/groupware/ox-scriptconf.sh like this:

# This properties sets the java options given to the groupware on start JAVA_XTRAOPTS="-Xmx512m -XX:+UseConcMarkSweepGC -XX:MaxPermSize=128M -Dsun.net.inetaddr.ttl=3600 -Dnetworkaddress.cache.ttl=3600 -Dnetworkaddress.cache.negative.ttl=10"

to

# This properties sets the java options given to the groupware on start JAVA_XTRAOPTS="-Xmx512m -XX:+UseConcMarkSweepGC -XX:MaxPermSize=128M -Dsun.net.inetaddr.ttl=3600 -Dnetworkaddress.cache.ttl=3600 -Dnetworkaddress.cache.negative.ttl=10 -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/<path>/java_pid<pid>.hprof"

adjust <path> to your settings.