From 21258dee1b3c70ba5f67e213a8e9f18eb1305b7c Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 16 Dec 2025 12:26:15 +0800 Subject: [PATCH] =?UTF-8?q?other=20=E5=A2=9E=E5=8A=A0gc=E5=92=8Coom?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc-service/rc-service-other/Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/Dockerfile b/rc-service/rc-service-other/Dockerfile index 0ecb8c32..a232d465 100644 --- a/rc-service/rc-service-other/Dockerfile +++ b/rc-service/rc-service-other/Dockerfile @@ -6,9 +6,17 @@ ENV RC_SERVICE_VERSION $SERVICE_VERSION ENV SERVER_PORT="9000" ENV SERVER_PROFILE_ACTIVE "prod" -ENV JVM_OPTION "-XX:InitialRAMPercentage=65.0 -XX:MaxRAMPercentage=65.0" +ENV JVM_OPTION "-XX:InitialRAMPercentage=65.0 -XX:MaxRAMPercentage=65.0 \ +-XX:+HeapDumpOnOutOfMemoryError \ +-XX:HeapDumpPath=/application/logs/heapdump-$(date +%Y%m%d-%H%M%S).hprof \ +-XX:+PrintGCDetails \ +-XX:+PrintGCDateStamps \ +-Xloggc:/application/logs/gc-%t.log \ +-XX:+UseGCLogFileRotation \ +-XX:NumberOfGCLogFiles=5 \ +-XX:GCLogFileSize=20M" -RUN mkdir -p /application +RUN mkdir -p /application /logs WORKDIR application COPY other-start/target/rc-service-other-*.jar service.jar