docker 启动调整jvm参数

This commit is contained in:
wangliwen 2022-07-25 14:13:54 +08:00
parent 62c023a046
commit 88c75d5022
1 changed files with 1 additions and 1 deletions

View File

@ -13,4 +13,4 @@ RUN cd /usr/share/fonts/truetype/dejavu && chmod 755 * && fc-cache -fv
WORKDIR $VERTICLE_HOME/renren-admin WORKDIR $VERTICLE_HOME/renren-admin
ENTRYPOINT ["sh", "-c"] ENTRYPOINT ["sh", "-c"]
CMD ["exec java -jar -Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Duser.timezone=GMT+08 $JAR_FILE --spring.profiles.active=$ACTIVE"] CMD ["exec java -jar -Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Xms512M -Xmx1G -XX:ReservedCodeCacheSize=64m -XX:InitialCodeCacheSize=64m -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ConcGCThreads=1 -XX:ParallelGCThreads=2 -XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5 -Duser.timezone=GMT+08 $JAR_FILE --spring.profiles.active=$ACTIVE"]