Skip to content

Commit

Permalink
tweak memory-setting in docker entrypoint
Browse files Browse the repository at this point in the history
- prevent oom, with given 4G, but just 1G used. Now with given 4G, 3G are used for heap
  • Loading branch information
luechtdiode committed Mar 3, 2024
1 parent bf83af1 commit d02b3ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ ENTRYPOINT [ "java", "-cp", ".:app.jar:libs/*" \
, "--add-opens=java.base/sun.util.calendar=ALL-UNNAMED" \
, "-XX:+UseZGC" \
, "-XX:+ZGenerational" \
, "-XX:MaxRAMPercentage=75.0" \
, "-XX:+ExitOnOutOfMemoryError" \
, "-XshowSettings:vm -version" \
, "ch.seidel.kutu.KuTuServer"]

0 comments on commit d02b3ff

Please sign in to comment.