Repository navigation
Commit 3d2ab5c
committed
docs: note that Node.js 26 keeps the memory of ended workers
On Node.js 26, an ended worker's heap pages stay in the process for the
workers started after it, so a build holds them while the main thread
bundles the site (~800MB on the Node.js docs). Only Node's
`--no-memory-pool-share-memory-on-teardown` gives them back:
`v8.setFlagsFromString` has no effect on it, and `NODE_OPTIONS` doesn't
accept it. Node.js 24 gives the memory back by itself after a few
seconds, and rejects the flag.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 9bfd73f commit 3d2ab5c
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| |||
0 commit comments