use openj9 as the Java runtime to reduce memory usage

This commit is contained in:
Athou
2024-07-13 11:06:45 +02:00
parent dc526316a0
commit 9134f36d3b
2 changed files with 12 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM eclipse-temurin:21.0.3_9-jre
FROM ibm-semeru-runtimes:open-21-jre
EXPOSE 8082
@@ -8,5 +8,5 @@ VOLUME /commafeed/data
COPY commafeed-server/config.yml.example config.yml
COPY commafeed-server/target/commafeed.jar .
ENV JAVA_TOOL_OPTIONS -Djava.net.preferIPv4Stack=true -Xms20m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:-ShrinkHeapInSteps -XX:G1PeriodicGCInterval=10000 -XX:-G1PeriodicGCInvokesConcurrent -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10
ENV JAVA_TOOL_OPTIONS -Djava.net.preferIPv4Stack=true -Xtune:virtualized -Xminf0.05 -Xmaxf0.1
CMD ["java", "-jar", "commafeed.jar", "server", "config.yml"]