Enabling Out Of Memory Dumps: Difference between revisions

From Open-Xchange
(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 edit summary
Line 11: Line 11:


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


adjust <path> to your settings.
adjust <path> to your settings.

Revision as of 12:45, 6 February 2012

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.