diff --git a/Dockerfile b/Dockerfile index 36411909785ae8d7a753d863a4d4e5abe3477e3c..c23741d36ad74ab8cd02e1add0bf1dc871cc3ff0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,8 @@ ENV PROFILE="${PROFILE}" 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:MaxRAMPercentage=65 -XX:MaxMetaspaceSize=512m\ - -XX:+UseG1GC -XX:SurvivorRatio=4 -XX:+UseStringDeduplication -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime:filecount=50\ + -XX:MaxRAMPercentage=50 -XX:MaxMetaspaceSize=512m -XX:+ClassUnloading\ + -XX:+UseG1GC -XX:G1HeapRegionSize=8m -XX:+UseStringDeduplication -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime:filecount=50\ -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\ -XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"