diff --git a/Dockerfile b/Dockerfile index 9332ef43e2f6d209be5616b683b181ca103e987e..282b5e3d32a3cdd46df8275ecc3c4ab8bf197cc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,8 +30,8 @@ ENV PROFILE=${PROFILE} \ SW_AGENT_TRACE_IGNORE_PATH=OPTIONS:/**,GET:/actuator/**,Mysql/**,HikariCP/**,Redisson/PING ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar \ - -XX:+UseG1GC -XX:G1HeapRegionSize=8m -XX:+UseStringDeduplication -XX:+ClassUnloading \ - -XX:InitialRAMPercentage=70 -XX:MaxRAMPercentage=70 -XX:MaxMetaspaceSize=512m \ + -XX:+UseG1GC -XX:G1HeapRegionSize=16m -XX:InitiatingHeapOccupancyPercent=30 \ + -XX:+AlwaysPreTouch -XX:InitialRAMPercentage=50 -XX:MaxRAMPercentage=50 \ -Xlog:gc*=info,gc+heap=debug,gc+age=trace:/data/logs/gc/gc-%t.log:time:filecount=20,filesize=20m \ -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh \ -XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"