Member-only story
NodejsV8JavaScriptBackend DevelopmentProgramming Node 27 Caps Your Heap at Half Your RAM by Default. Measure Before You Ship.
Sohail Saifi
7 min read6 hours ago
Press enter or click to view image in full size
Upgrade a service to Node 27 and, on a typical 8 GB box, your heap can grow to 4 GB before V8 collects hard. On Node 26 that ceiling was 2 GB. Same code, same container, double the headroom you never asked for.
That is the kind of change that passes every test suite and then surprises you at 2 a.m. when a pod gets OOM killed under real traffic. Node 27 ships three of these quiet ones at once: a new default heap size, Buffer memory that now counts against the limit, and a serialization format older Node versions cannot read. None of them throw at startup. All of them can change how your service behaves in production.
One honesty note before we go further: Node 27 is in alpha.…