From fe1b2a6a46b635b699f14a5fdd286a42f1ce2447 Mon Sep 17 00:00:00 2001 From: liuyihe <2513762445@qq.com> Date: Mon, 19 Oct 2026 11:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index a32c3906f..c4d3c1d27 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -285,9 +285,14 @@ services: image: ${IMAGE_REPOSITORY}/lastleg-service:${IMAGE_TAG} container_name: firstleg-${DEPLOY_ENV:-test}-lastleg expose: ["9303"] + # 仅限制尾程服务,避免 JVM 异常时拖垮测试服务器. + mem_limit: 3g + memswap_limit: 3g + cpus: "2.0" environment: <<: *common-environment SERVER_PORT: 9303 + JAVA_TOOL_OPTIONS: "-Xms512m -Xmx1536m -XX:+ExitOnOutOfMemoryError -Dfile.encoding=UTF-8" SELFOP_EXECUTION_ENABLED: ${SELFOP_EXECUTION_ENABLED:-false} SELFOP_COLLECTION_MODE: ${SELFOP_COLLECTION_MODE:-OFF} SELFOP_SOURCE_ACCOUNT: ${SELFOP_SOURCE_ACCOUNT:-lingxing-primary} @@ -333,3 +338,5 @@ networks: infra-network: external: true name: ${INFRA_NETWORK:-firstleg-${DEPLOY_ENV:-test}-infra-network} + +