Kill the JVM in the case of OOM errors
@@ -5,4 +5,4 @@ WORKDIR /
ADD server/server-0.0.1-SNAPSHOT-with-dependencies.jar server-0.0.1-SNAPSHOT-with-dependencies.jar
COPY /plugins/. /plugins
-ENTRYPOINT ["java", "-Xmx16g", "-cp", "server-0.0.1-SNAPSHOT-with-dependencies.jar", "eu.fasten.server.FastenServer", "-p", "./plugins"]
+ENTRYPOINT ["java", "-Xmx16g", "-XX:+ExitOnOutOfMemoryError", "-cp", "server-0.0.1-SNAPSHOT-with-dependencies.jar", "eu.fasten.server.FastenServer", "-p", "./plugins"]
