docker 启动调整jvm参数
This commit is contained in:
parent
62c023a046
commit
88c75d5022
|
@ -13,4 +13,4 @@ RUN cd /usr/share/fonts/truetype/dejavu && chmod 755 * && fc-cache -fv
|
|||
|
||||
WORKDIR $VERTICLE_HOME/renren-admin
|
||||
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"]
|
Loading…
Reference in New Issue