diff --git a/Dockerfile b/Dockerfile index 282b5e3d32a3cdd46df8275ecc3c4ab8bf197cc1..1ae49c24b49c9397541b8f940807f652e3e49413 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,7 @@ ENV PROFILE=${PROFILE} \ ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar \ -XX:+UseG1GC -XX:G1HeapRegionSize=16m -XX:InitiatingHeapOccupancyPercent=30 \ -XX:+AlwaysPreTouch -XX:InitialRAMPercentage=50 -XX:MaxRAMPercentage=50 \ + -XX:CompressedClassSpaceSize=128M -XX:MaxMetaspaceSize=256m \ -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"