Child pages
  • Running the Server As a Service

Versions Compared

Key

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

...

Perform Custom Action on OutOfMemory Exceptions

Java process processes need to be explicitly told how much memory they are allowed to use. In case the process requires more memory than it's allowed to use based on the configuration, Java will throw OutOfMemory exceptions. When this happens, the state of the process becomes unreliable,  as as some vital business logic might not have been executed. Java only has limited options to take action when OutOfMemory exceptions occur.

The Java Service Wrapper however support supports a monitoring feature that is capable of taking action in case that OutOfMemory exceptions occur. The following snippet of configuration will perform a thread dump and then a restart of the Servoy Application Server.

...