Commit 8d602e72 authored by liaozan's avatar liaozan 🏀

Polish

parent 322a11ad
......@@ -14,8 +14,8 @@ ENV EXT_JVM_OPTS="${JAVA_OPTS}"
ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar=agent.service_name=${APP_NAME},collector.backend_service=skywalking-oap-server.devops:11800\
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\
-XX:MaxRAMPercentage=60 -XX:MaxMetaspaceSize=256m -XX:NativeMemoryTracking=summary\
-XX:+UseG1GC -XX:+UseStringDeduplication -XX:G1HeapRegionSize=8m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime\
-XX:MaxRAMPercentage=60 -XX:MaxMetaspaceSize=256m\
-XX:+UseG1GC -XX:+UseStringDeduplication -XX:G1HeapRegionSize=4m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime:filecount=50\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
......
......@@ -25,13 +25,6 @@ spec:
values:
- ${NODE_TAG}
terminationGracePeriodSeconds: 20
initContainers:
- name: ${APP_NAME}-init
image: registry-vpc.cn-hangzhou.aliyuncs.com/acs/busybox
command: [ 'mkdir', '-p', '/data/logs/gc', '/data/heapdump' ]
volumeMounts:
- name: ${APP_NAME}-volume
mountPath: /data
containers:
- name: ${APP_NAME}
image: ${IMAGE}
......@@ -48,6 +41,10 @@ spec:
- name: actuator
containerPort: 1024
protocol: TCP
lifecycle:
postStart:
exec:
command: [ 'mkdir', '-p', '/data/logs/gc', '/data/heapdump' ]
startupProbe:
httpGet:
scheme: HTTP
......
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