Skip to content

Commit

Permalink
0003915: Service wrapper detection of fatal errors and restart
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmind-josh committed Apr 12, 2019
1 parent 173279f commit ffa714e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -184,7 +184,8 @@ protected void execJava(boolean isConsole) {
logger.log(Level.INFO, line, "java");
if ((usingHeapDump && line.matches("Heap dump file created.*")) ||
(!usingHeapDump && line.matches("java.lang.OutOfMemoryError.*")) ||
line.matches(".*java.net.BindException.*")) {
line.matches(".*java.net.BindException.*") ||
line.matches(".*A fatal error has been detected.*")) {
logger.log(Level.SEVERE, "Stopping server because its output matches a failure condition");
child.destroy();
childReader.close();
Expand Down

0 comments on commit ffa714e

Please sign in to comment.