"매 V8 heap 의 explicit budget + GC trace 의 observe". Node.js 의 default heap 매 ~4 GB (64-bit) 의 OS-derived — 매 process 의 actual workload 의 맞춰 매 --max-old-space-size, --max-semi-space-size 의 tune. 2026 Node 22 LTS 의 V8 12.4 — 매 Maglev tier, pointer compression default 의 활용.
매 핵심
매 V8 heap layout
Young generation (semi-space): 매 short-lived — 매 Scavenge GC, 매 fast.
Old generation: 매 promoted — 매 Mark-Compact.
Code/Map/Large object space: 매 separate.
Pointer compression: 매 4-byte tagged pointer (4 GB heap 의 limit) — 매 default since Node 14.
매 GC modes
Scavenge (minor): 매 ms order, 매 frequent.
Mark-Sweep-Compact (major): 매 100s of ms, 매 STW phase.
Concurrent marking: 매 background — STW 의 reduce.
Incremental marking: 매 chunk-by-chunk.
매 응용
큰 JSON parsing — heap 의 raise + streaming parser 의 use.
Long-running server — leak detection (heap snapshot diff).