From ab13a4b17f7f05a1840ebee11d9b55d8c907dcab Mon Sep 17 00:00:00 2001 From: ACX <8075870+acx10@users.noreply.github.com> Date: Sat, 14 Feb 2026 17:58:03 -0700 Subject: [PATCH] fix: enable compact object headers (Project Lilliput) to reduce heap usage (#2755) --- Dockerfile | 2 +- Dockerfile.ci | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f46ef08d3..7f24ba74e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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:MaxRAMPercentage=75.0" +ENV JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+UseStringDeduplication -XX:+UseContainerSupport -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=75.0" RUN apk update && apk add --no-cache su-exec diff --git a/Dockerfile.ci b/Dockerfile.ci index 00a59cbed..9c04ae2c9 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -16,7 +16,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:MaxRAMPercentage=75.0" +ENV JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+UseStringDeduplication -XX:+UseContainerSupport -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=75.0" RUN apk update && apk add --no-cache su-exec