From 7c29abde8b8a22d7c62eae1c70dd6df8adf4dd41 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Sun, 30 Jul 2023 01:43:15 +0800 Subject: [PATCH] Update jvm options --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0a642a..b1fde2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,8 @@ ENV EXT_JVM_OPTS="${JAVA_OPTS}" ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar=agent.service_name=${APP_NAME},collector.backend_service=skywalking-oap-server.devops:11800\ -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\ - -XX:+AlwaysPreTouch -XX:MinRAMPercentage=75 -XX:MaxRAMPercentage=75 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -XX:NativeMemoryTracking=summary\ - -XX:+UseG1GC -XX:G1HeapRegionSize=2m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime\ + -XX:MaxRAMPercentage=75 -XX:MaxMetaspaceSize=256m -XX:NativeMemoryTracking=summary\ + -XX:+UseG1GC -XX:+UseStringDeduplication -XX:G1HeapRegionSize=8m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime\ -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\ -XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags" -- GitLab