限制内存使用大小001

This commit is contained in:
yuzl6 2024-04-08 09:33:03 +08:00
parent 0d91f15061
commit 226d18b627

View File

@ -5,7 +5,7 @@ FROM registry.cn-qingdao.aliyuncs.com/yuzl1/jdk:21
COPY target/ruoyi-powerjob-server.jar /ruoyi-powerjob-server.jar COPY target/ruoyi-powerjob-server.jar /ruoyi-powerjob-server.jar
# 设置环境变量 # 设置环境变量
ENV JAVA_OPTS="-Xmx1344M -Xms1344M -Xmn448M -XX:MaxMetaspaceSize=192M -XX:MetaspaceSize=192M" ENV JAVA_OPTS="-Xmx1344M -Xms1344M -Xmn448M -XX:MaxMetaspaceSize=256M -XX:MetaspaceSize=256M"
# 时区设置 # 时区设置
RUN echo "Asia/shanghai" > /etc/timezone RUN echo "Asia/shanghai" > /etc/timezone