refactor(docker): consolidate JVM options into JAVA_TOOL_OPTIONS (#1074)

This commit is contained in:
brios
2026-05-06 09:28:50 +02:00
committed by GitHub
parent 207000d62c
commit efb2e1ca2d
2 changed files with 18 additions and 16 deletions
+3 -1
View File
@@ -81,7 +81,9 @@ ENV JAVA_TOOL_OPTIONS="-XX:+UseShenandoahGC \
-XX:+UseStringDeduplication \ -XX:+UseStringDeduplication \
-XX:ShenandoahUncommitDelay=5000 \ -XX:ShenandoahUncommitDelay=5000 \
-XX:ShenandoahGuaranteedGCInterval=30000 \ -XX:ShenandoahGuaranteedGCInterval=30000 \
-XX:MaxDirectMemorySize=256m" -XX:MaxDirectMemorySize=256m \
--enable-native-access=ALL-UNNAMED \
--enable-preview"
RUN apk add --no-cache su-exec libstdc++ libgcc libarchive && \ RUN apk add --no-cache su-exec libstdc++ libgcc libarchive && \
mkdir -p /bookdrop mkdir -p /bookdrop
+1 -1
View File
@@ -17,7 +17,7 @@ services:
- REMOTE_DEBUG_ENABLED=true - REMOTE_DEBUG_ENABLED=true
- ALLOWED_ORIGINS=* - ALLOWED_ORIGINS=*
- API_DOCS_ENABLED=true - API_DOCS_ENABLED=true
- JAVA_TOOL_OPTIONS=-XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=60.0 -XX:InitialRAMPercentage=8.0 -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump.hprof -XX:MaxMetaspaceSize=256m -XX:ReservedCodeCacheSize=48m -Xss512k -XX:CICompilerCount=2 -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:ShenandoahUncommitDelay=5000 -XX:ShenandoahGuaranteedGCInterval=30000 -XX:MaxDirectMemorySize=256m - JAVA_TOOL_OPTIONS=-XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=60.0 -XX:InitialRAMPercentage=8.0 -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump.hprof -XX:MaxMetaspaceSize=256m -XX:ReservedCodeCacheSize=48m -Xss512k -XX:CICompilerCount=2 -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:ShenandoahUncommitDelay=5000 -XX:ShenandoahGuaranteedGCInterval=30000 -XX:MaxDirectMemorySize=256m --enable-native-access=ALL-UNNAMED --enable-preview
stdin_open: true stdin_open: true
tty: true tty: true
restart: unless-stopped restart: unless-stopped