refactor(docker): consolidate JVM options into JAVA_TOOL_OPTIONS (#1074)
This commit is contained in:
+3
-1
@@ -81,7 +81,9 @@ ENV JAVA_TOOL_OPTIONS="-XX:+UseShenandoahGC \
|
||||
-XX:+UseStringDeduplication \
|
||||
-XX:ShenandoahUncommitDelay=5000 \
|
||||
-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 && \
|
||||
mkdir -p /bookdrop
|
||||
|
||||
@@ -17,7 +17,7 @@ services:
|
||||
- REMOTE_DEBUG_ENABLED=true
|
||||
- ALLOWED_ORIGINS=*
|
||||
- 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
|
||||
tty: true
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user