Commit 9cfcddab authored by liaozan's avatar liaozan 🏀

chore: update Dockerfile

parent ea8097dd
......@@ -14,7 +14,7 @@ RUN mkdir -p /data/logs/gc
ENV EXT_JVM_OPTS="${JAVA_OPTS}"
ENV JVM_OPTS="-XX:MaxRAMPercentage=70 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m\
ENV JVM_OPTS="-XX:+AlwaysPreTouch -XX:MinRAMPercentage=70 -XX:MaxRAMPercentage=70 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m\
-XX:+UseG1GC -XX:G1HeapRegionSize=2m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
......
......@@ -27,7 +27,7 @@ spec:
terminationGracePeriodSeconds: 30
initContainers:
- name: ${APP_NAME}-init
image: busybox
image: registry-vpc.cn-hangzhou.aliyuncs.com/acs/busybox
command: [ 'mkdir', '-p', '/data/logs/gc', '/data/heapdump' ]
volumeMounts:
- name: ${APP_NAME}-volume
......@@ -55,7 +55,8 @@ spec:
scheme: HTTP
path: /actuator/health
port: 1024
failureThreshold: 6
initialDelaySeconds: 20
failureThreshold: 4
periodSeconds: 10
livenessProbe:
httpGet:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment