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 <cursoragent@cursor.com>
This commit is contained in:
2026-07-20 16:24:22 +00:00
parent 477afc412a
commit 093babb50f

View File

@@ -39,6 +39,8 @@ services:
# - "2449:2449" # - "2449:2449"
environment: environment:
DSHACKLE_LOG_LEVEL: ${DSHACKLE_LOG_LEVEL:-info} DSHACKLE_LOG_LEVEL: ${DSHACKLE_LOG_LEVEL:-info}
# Cap JVM heap (image default is -Xms1024M with no -Xmx).
JAVA_OPTS: "-Xms1g -Xmx4g"
labels: labels:
- "prometheus-scrape.enabled=true" - "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=8081" - "prometheus-scrape.port=8081"