From d652f3f94bfe34edbcf8d2b52248e3026f938986 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 3 Jun 2026 16:15:20 +0200 Subject: [PATCH] fix: limit JVM heap to 128MB with G1GC periodic GC container Revert to commit 8108a66 (cue file fix + CD mounting fixes) and apply only the Dockerfile JVM memory limit. All other changes (StaticResource Range support, FileChannel transferTo) reverted. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8d49537..80f4286 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,4 +25,6 @@ COPY --from=build /build/target/quarkus-app/ /app/ EXPOSE 8765 VOLUME /data ENV DOSTALGIA_DATA_DIR=/data -ENTRYPOINT ["java", "-jar", "quarkus-run.jar"] +# Limit JVM heap — the app streams everything (upload/serve) so 128MB is plenty +# G1GC with periodic GC allows heap to shrink when idle +ENTRYPOINT ["java", "-Xmx128m", "-Xms64m", "-XX:+UseG1GC", "-XX:G1PeriodicGCInterval=30000", "-jar", "quarkus-run.jar"]