diff --git a/mokee-gateway-admin/Dockerfile b/mokee-gateway-admin/Dockerfile index b4b4cfe..470fb73 100644 --- a/mokee-gateway-admin/Dockerfile +++ b/mokee-gateway-admin/Dockerfile @@ -2,4 +2,4 @@ FROM harbor.zgitm.com/library/eclipse-temurin:17-jre WORKDIR /app COPY target/*.jar app.jar EXPOSE 32002 -ENTRYPOINT ["java","-jar","app.jar"] \ No newline at end of file +ENTRYPOINT ["java","-Xms256m","-Xmx512m","-XX:+UseG1GC","-XX:MaxGCPauseMillis=200","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=/app/dump.hprof","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=Asia/Shanghai","-jar","app.jar"] \ No newline at end of file diff --git a/mokee-gateway-auth/Dockerfile b/mokee-gateway-auth/Dockerfile index 166dbd1..3778d8b 100644 --- a/mokee-gateway-auth/Dockerfile +++ b/mokee-gateway-auth/Dockerfile @@ -2,4 +2,4 @@ FROM harbor.zgitm.com/library/eclipse-temurin:17-jre WORKDIR /app COPY target/*.jar app.jar EXPOSE 32001 -ENTRYPOINT ["java","-jar","app.jar"] \ No newline at end of file +ENTRYPOINT ["java","-Xms256m","-Xmx512m","-XX:+UseG1GC","-XX:MaxGCPauseMillis=200","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=/app/dump.hprof","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=Asia/Shanghai","-jar","app.jar"] \ No newline at end of file diff --git a/mokee-gateway-gateway/Dockerfile b/mokee-gateway-gateway/Dockerfile index c43e123..8cb3110 100644 --- a/mokee-gateway-gateway/Dockerfile +++ b/mokee-gateway-gateway/Dockerfile @@ -2,4 +2,4 @@ FROM harbor.zgitm.com/library/eclipse-temurin:17-jre WORKDIR /app COPY target/*.jar app.jar EXPOSE 32000 -ENTRYPOINT ["java","-jar","app.jar"] \ No newline at end of file +ENTRYPOINT ["java","-Xms256m","-Xmx512m","-XX:+UseG1GC","-XX:MaxGCPauseMillis=200","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=/app/dump.hprof","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=Asia/Shanghai","-jar","app.jar"] \ No newline at end of file