Node.js is powered by the V8 JavaScript engine, which has its own memory limits and uses garbage collection (GC) to automatically manage memory.
However, for long-lived server processes, memory leaks and poor GC behavior can lead to performance issues, crashes, or OOM (Out of Memory) errors.
You’re running a high-throughput Express server that suddenly crashes after a few hours with Heap out of memory, and you suspect a memory leak or suboptimal GC behavior.
~1.5GB in 64-bit systems; can be increased with -max-old-space-sizeNew Space: Young generation, frequent GCOld Space: Promoted objects, less frequent GCCode Space, Large Object Space