From 1a6bc5573b70354b5d1d898b89ab9c79946d64b4 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 15 Nov 2022 09:33:25 +0000 Subject: [PATCH] Limit OpenJ9 to 1GB of ram. --- Dockerfile.openj9 | 2 +- Dockerfile.openj9.ci | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.openj9 b/Dockerfile.openj9 index e763c23..2710b4c 100644 --- a/Dockerfile.openj9 +++ b/Dockerfile.openj9 @@ -17,4 +17,4 @@ COPY VERSION . EXPOSE 8080 -CMD java -server -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseParallelGC -XX:-UseBiasedLocking -Xshareclasses:allowClasspaths -Xtune:virtualized -jar /app/piped.jar +CMD java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseParallelGC -XX:-UseBiasedLocking -Xshareclasses:allowClasspaths -Xtune:virtualized -jar /app/piped.jar diff --git a/Dockerfile.openj9.ci b/Dockerfile.openj9.ci index 9989906..bc26439 100644 --- a/Dockerfile.openj9.ci +++ b/Dockerfile.openj9.ci @@ -8,4 +8,4 @@ COPY VERSION . EXPOSE 8080 -CMD java -server -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseParallelGC -XX:-UseBiasedLocking -Xshareclasses:allowClasspaths -Xtune:virtualized -jar /app/piped.jar +CMD java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseParallelGC -XX:-UseBiasedLocking -Xshareclasses:allowClasspaths -Xtune:virtualized -jar /app/piped.jar