feat: add G1GC heap uncommit flags so container memory shrinks after uploads
Build & Deploy / build-and-deploy (push) Failing after 49s

-XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:G1HeapUncommitPercent=5
After large game uploads, the JVM committed heap stays high. These flags tell
G1GC to release free heap pages back to the OS after GC cycles, so Docker
memory usage drops back toward baseline instead of staying at peak.
This commit is contained in:
David Alvarez
2026-06-04 11:24:53 +02:00
parent d119b3ccb9
commit e9c4d963ad
+1 -1
View File
@@ -25,4 +25,4 @@ COPY --from=build /build/target/quarkus-app/ /app/
EXPOSE 8765
VOLUME /data
ENV DOSTALGIA_DATA_DIR=/data
ENTRYPOINT ["java", "-jar", "quarkus-run.jar"]
ENTRYPOINT ["java", "-XX:+UseG1GC", "-XX:MinHeapFreeRatio=10", "-XX:MaxHeapFreeRatio=20", "-XX:G1HeapUncommitPercent=5", "-jar", "quarkus-run.jar"]