From e9b51017b0c32cde576d30e47594d181682dde7c Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 13 Mar 2023 00:17:58 +0000 Subject: [PATCH] Optimize HotSpot flags for performance. --- Dockerfile | 2 +- Dockerfile.ci | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa7be7e..68b23f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ COPY VERSION . EXPOSE 8080 -CMD ["java", "--enable-preview", "-jar", "/app/piped.jar"] +CMD java -server -Xmx1G -XX:+AggressiveOpts -XX:+UnlockExperimentalVMOptions -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on --enable-preview -jar /app/piped.jar diff --git a/Dockerfile.ci b/Dockerfile.ci index 20d2cb7..ee5746f 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -8,4 +8,4 @@ COPY VERSION . EXPOSE 8080 -CMD ["java", "--enable-preview", "-jar", "/app/piped.jar"] +CMD java -server -Xmx1G -XX:+AggressiveOpts -XX:+UnlockExperimentalVMOptions -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on --enable-preview -jar /app/piped.jar