限制内存使用大小001
This commit is contained in:
parent
0d91f15061
commit
226d18b627
@ -5,7 +5,7 @@ FROM registry.cn-qingdao.aliyuncs.com/yuzl1/jdk:21
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user