From 202a13ee75a2701035c38b24b836fafe86103591 Mon Sep 17 00:00:00 2001 From: zhuxt2015 <594754793@qq.com> Date: Thu, 17 Oct 2024 21:46:59 +0800 Subject: [PATCH] [Improvement][Docker]Limit the maximum percentage of container memory used by the JVM via -XX:MaxRAMPercentage (#3840) --- deploy/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/docker/Dockerfile b/deploy/docker/Dockerfile index 86d7d028ec..68502ff200 100755 --- a/deploy/docker/Dockerfile +++ b/deploy/docker/Dockerfile @@ -48,7 +48,7 @@ RUN rm -f /opt/dinky/extends/flink${FLINK_VERSION}/flink/flink-table-planner-lo COPY --from=flink-base /opt/flink/opt/flink-table-planner*.jar /opt/dinky/extends/flink${FLINK_VERSION}/flink/ -RUN mkdir /opt/dinky/customJar && chmod -R 777 /opt/dinky/ +RUN mkdir /opt/dinky/customJar && chmod -R 777 /opt/dinky/ && sed -i 's/-Xms512M -Xmx2048M -XX:PermSize=512M/-XX:+UseContainerSupport -XX:InitialRAMPercentage=70.0 -XX:MaxRAMPercentage=70.0/g' auto.sh EXPOSE 8888