Skip to content

Commit

Permalink
Merge pull request #8 from praseodym/dockerfile-exit-oom
Browse files Browse the repository at this point in the history
Add `-XX:+ExitOnOutOfMemoryError` to Dockerfile
  • Loading branch information
dekkers committed May 9, 2023
2 parents 8c4c959 + f1bf1ac commit 719b052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN lein uberjar

FROM eclipse-temurin:11-jre
ENV MALLOC_ARENA_MAX=2
ENV JAVA_TOOL_OPTIONS="-Xms128M -Xmx512M -XX:MaxDirectMemorySize=512M"
ENV JAVA_TOOL_OPTIONS="-Xms128M -Xmx512M -XX:MaxDirectMemorySize=512M -XX:+ExitOnOutOfMemoryError"
VOLUME /var/lib/xtdb
EXPOSE 3000
WORKDIR /app
Expand Down

0 comments on commit 719b052

Please sign in to comment.