fix: limit JVM heap to 128MB with G1GC periodic GC container
Build & Deploy / build-and-deploy (push) Successful in 14s

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.
This commit is contained in:
Hermes Agent
2026-06-03 16:15:20 +02:00
parent 8108a661fa
commit d652f3f94b
+3 -1
View File
@@ -25,4 +25,6 @@ COPY --from=build /build/target/quarkus-app/ /app/
EXPOSE 8765 EXPOSE 8765
VOLUME /data VOLUME /data
ENV DOSTALGIA_DATA_DIR=/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"]