-XX:OnOutOfMemoryError=”kill -9 %p” Problem
In Java version 8u92 the VM arguments -XX:+ExitOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError were added, see the release notes. ExitOnOutOfMemoryError When you enable this option, the JVM exits on the first occurrence of an out-of-memory error. It can be used if you prefer restarting an instance of the JVM rather than handling out of memory errors. CrashOnOutOfMemoryError If this … Read more