Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the Platform or an EC runs out of memory during, for example, a system import, the System Log might not be properly updated with the out of memory information. To make sure that this critical error information is properly stored in System Log, an oom script is executed each time an OutOfMemoryError exception is thrown. The JVM is started using the -XX:OnOutOfMemoryError=oom flag, which enables the JVM to catch all OutOfMemoryError exceptions from the oom script.

OOM Script

The oom script uses three parameters to generate output:

...

Info
titleExample - OOM info in the Critical Error Log


Code Block
languagetext
themeEclipse
Tue Jan 17 17:21:11 CET 2012 OutOfMemoryError on ec1at host-e6410. See ec1.log for more information


User Defined Script

It is possible to use a user defined script for sending, for example, e-mail notifications related to the OutOfMemoryError exception. This script must be called user_oom and located in MZ_HOME/bin. If user_oom is available, the oom script will call it and forward the $1 and $2 parameter values.

...