Node.js 27 Changes Your Default Heap Limit
On October 29, 2026, the first alpha of Node.js 27 shipped as 27.0.0-alpha.0.0.0, and it carries a change that reaches every application running today without special configuration: the way the runtime computes the default heap limit has been rewritten.
Most teams never set --max-old-space-size. The service starts, it stabilizes, and nobody revisits it. That is precisely the problem — the value nobody chose is the one about to shift underneath the deployment.
The problem: a limit nobody decided
V8's heap limit is a number that always exists, whether or not it was written down. Cross it and the process dies with JavaScript heap out of memory. Inside a container, that number decides when the application gets killed and what the orchestrator does next.
The difference between an explicit setting and a default is that the first is known and the second is inherited. A major version upgrade is exactly the moment a silently inherited value stops holding.
What changed in Node.js 27
The release notes state it plainly: when --max-old-space-size is not set, the default heap size limit is now half of physical memory, clamped between 256 MB and 4 GB. On top of that, memory held by Buffer and ArrayBuffer instances now counts toward the heap limit.
The second point matters more in practice than the first. Any service that handles file uploads, image processing, or large streams was allocating outside the accounted heap. That memory now sits inside the same budget. A service that ran comfortably for months can start brushing against the ceiling with no code change at all.
The Node.js team's guidance is direct: applications that relied on the previous defaults should set --max-old-space-size explicitly.
# Read the real limit — run this inside the container, not on a laptop
node -p "require('v8').getHeapStatistics().heap_size_limit / 1024 ** 2"
# Pin the number instead of inheriting it
node --max-old-space-size=2048 server.js
# Or through the environment, which suits prebuilt images better
NODE_OPTIONS="--max-old-space-size=2048" node server.jsThe practical rule: read the number before and after the upgrade, then compare. If it moved, pin it — rather than discovering the difference from a crash report in production.
The quieter trap: a new serialization format
The second change is calmer and more dangerous. Per the release notes, v8.serialize(), structuredClone(), and postMessage() now use a new format that older Node.js releases cannot read.
Concretely: if v8.serialize() output is written to a shared cache or a database, and part of the fleet runs Node.js 26 while the rest runs 27, reads across that boundary break. The same logic applies to any rolling deploy where two versions coexist even briefly.
The release notes also flag that v8.cachedDataVersionTag() and the compile cache now change on every Node.js patch of V8, not only when the V8 version changes. Any cache keyed on that tag should be treated as invalidatable at any time.
Real-world caveats
This is an alpha. Its proper home is a test environment, not production. It also carries other major changes worth reading before planning an upgrade: V8 moves to 15.6.75.13, up from 14.6 in Node.js 26; OpenSSL 3 or later is now required with sources upgraded to openssl-4.1.0 and the bundled FIPS provider build removed; req.headers has a null prototype; the http keepAliveTimeout default rises to 65 seconds; --no-experimental-websocket is gone; an --allow-env permission joins the permission model; and npm moves to 12.1.0.
One scheduling note deserves attention: starting with Node.js 27, the release cycle becomes annual and every major version moves to LTS after its six-month Current phase. The old rule that skipped odd-numbered releases ended with Node.js 26. For anyone sequencing upgrades, the Node.js 26 LTS upgrade notes remain the starting point.
Takeaway
The lesson is larger than one number. Every default relied on but never written down is an unwritten contract with the runtime, renegotiated at each major release. Read heap_size_limit inside the real environment, write the number into the configuration, and audit any cache that crosses version boundaries.