Skip to content

Commit 52b06f5

Browse files
committed
Cap dspace-angular memory at 2g to contain SSR leak
SSR worker has been observed growing to 8GB+ RSS over time. A 2g container mem_limit lets the kernel OOM-kill the runaway worker; pm2-runtime then respawns it. Stopgap until the underlying leak is diagnosed — see TODO in the compose file.
1 parent cda22f1 commit 52b06f5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ services:
1515
dspace-angular:
1616
restart: unless-stopped
1717
container_name: dspace-angular${INSTANCE}
18+
# Cap SSR memory leak; pm2-runtime respawns the worker on OOM.
19+
# TODO: investigate and fix the underlying SSR memory leak so this cap is no longer load-bearing.
20+
# TODO: revisit memory tuning for the other services — consider reducing the dspace -Xmx and
21+
# solr -m defaults (currently 4g each in docker-compose-rest.yml) and/or adding analogous
22+
# mem_limit caps on dspace and dspacesolr.
23+
mem_limit: 2g
1824
environment:
1925
TZ: ${TIMEZONE:-Europe/Bratislava}
2026
# UI runs plain HTTP on 0.0.0.0 inside container - nginx handles SSL termination

0 commit comments

Comments
 (0)