Skip to content

Commit

Permalink
[Improvement][Docker]Limit the maximum percentage of container memory…
Browse files Browse the repository at this point in the history
… used by the JVM via -XX:MaxRAMPercentage (#3840)
  • Loading branch information
zhuxt2015 authored Oct 17, 2024
1 parent ea1d900 commit 202a13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 202a13e

Please sign in to comment.