Skip to content

Commit 719b052

Browse files
authored
Merge pull request #8 from praseodym/dockerfile-exit-oom
Add `-XX:+ExitOnOutOfMemoryError` to Dockerfile
2 parents 8c4c959 + f1bf1ac commit 719b052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN lein uberjar
55

66
FROM eclipse-temurin:11-jre
77
ENV MALLOC_ARENA_MAX=2
8-
ENV JAVA_TOOL_OPTIONS="-Xms128M -Xmx512M -XX:MaxDirectMemorySize=512M"
8+
ENV JAVA_TOOL_OPTIONS="-Xms128M -Xmx512M -XX:MaxDirectMemorySize=512M -XX:+ExitOnOutOfMemoryError"
99
VOLUME /var/lib/xtdb
1010
EXPOSE 3000
1111
WORKDIR /app

0 commit comments

Comments
 (0)