Commit 22aec53
fix(web): scale web heap limit to container memory
Node's default old-space limit caps at ~4GiB regardless of how much memory
the container actually has. On larger deployments the web process fills that
ceiling and V8 falls into back-to-back full mark-compact collections, which
block the event loop for seconds at a time and slow every route at once.
Set --max-old-space-size-percentage on the web program so the heap scales
with the container's memory limit. Node reads the cgroup limit, so this is
proportional on every deployment size. Scoped to [program:web] via
supervisord so the backend and zoekt are unaffected.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent eb46976 commit 22aec53
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments