Skip to content

Commit fa41d20

Browse files
committed
Restore Node heap to 6 GB now that swap prevents OOM kills
With 14 GB swap as safety net, the 6 GB heap allows V8 to GC less aggressively, improving build performance. Brief memory peaks above 7 GB will use swap instead of crashing.
1 parent 26429c0 commit fa41d20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci_cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
env:
18-
# Hosted GitHub runners have 7 GB of memory available, reserve ~3 GB for Rspack native memory and OS
19-
NODE_OPTIONS: --max-old-space-size=4096
18+
# Hosted GitHub runners have 7 GB of memory available, swap handles brief peaks above this
19+
NODE_OPTIONS: --max-old-space-size=6144
2020

2121
jobs:
2222
build:

0 commit comments

Comments
 (0)