You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2f4ddf6
Browse filesBrowse the repository at this point in the historyBrowse files
perf(core): limit each worker's heap, by default just under 2GB
V8 lets a heap whose limit is 2GB or more grow to up to four times its
live data before collecting it, and on a machine with plenty of memory
every worker's limit is 4GB, so each held several times what it used.
Below 2GB, a heap only grows to about twice its live data.
`workerHeapSize` (`--worker-heap-size`) sets each worker's old space
limit, in MB, like `threads` sets their number. It defaults to the limit
V8 gives this process, at most `DEFAULT_MAX_WORKER_HEAP_SIZE` (2047): a
machine with less memory keeps the smaller limit V8 picks for it. An
explicit `--max-old-space-size` still wins, as V8 prefers it.
On Node core's build (4 threads), the peak goes from 2.73GB to 2.39GB on
Node 26 and from 2.90GB to 2.73GB on Node 24. Lower limits gain little
more: 2.29GB at 1536MB, 2.30GB at 768MB.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments