From 093babb50f881b25fb66a27041dde19c8072c69f Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Mon, 20 Jul 2026 16:24:22 +0000 Subject: [PATCH] drpc: cap dshackle JVM heap with JAVA_OPTS=-Xms1g -Xmx4g Image default is -Xms1024M with no -Xmx, so heap can grow unbounded (~30GiB). us-41 was at 90% memory with no swap; -Xmx4g provides a safety limit. Co-authored-by: Cursor --- drpc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drpc.yml b/drpc.yml index 1cfeafc2..d2371ab3 100644 --- a/drpc.yml +++ b/drpc.yml @@ -39,6 +39,8 @@ services: # - "2449:2449" environment: DSHACKLE_LOG_LEVEL: ${DSHACKLE_LOG_LEVEL:-info} + # Cap JVM heap (image default is -Xms1024M with no -Xmx). + JAVA_OPTS: "-Xms1g -Xmx4g" labels: - "prometheus-scrape.enabled=true" - "prometheus-scrape.port=8081"