tune jvm flags for containerized deployments (#3063)

This commit is contained in:
ACX
2026-02-27 00:00:28 -07:00
committed by GitHub
parent 88d7192d87
commit 00789e5832
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ LABEL org.opencontainers.image.title="BookLore" \
org.opencontainers.image.licenses="GPL-3.0" \
org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:25-jre-alpine"
ENV JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+UseStringDeduplication -XX:+UseContainerSupport -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=75.0"
ENV JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:+UseCompactObjectHeaders -XX:+UseStringDeduplication -XX:MaxRAMPercentage=75.0 -XX:+ExitOnOutOfMemoryError"
ARG TARGETARCH
RUN apk update && apk add --no-cache su-exec libstdc++ libgcc && \