Three Documented Memory Leaks Found in Next.js 15.5 to 16.3 in Production
As of July 2026, three confirmed memory leaks have been identified in Next.js versions 15.5 through 16.3, affecting self-hosted and serverless deployments. The first involves a route-resolution LRU cache that can retain up to one million keys and hundreds of megabytes while underreporting its own size. The second causes incomplete HTTP streams — from mobile clients or crawlers — to pin entire React Server Component trees in memory, with reporters measuring roughly 2 MB leaked per request on heavy pages. A third bug in the sandbox TimeoutsManager fails to release timeout IDs unless clearTimeout is called explicitly, though a one-line workaround exists. Developers experiencing heap exhaustion or OOMKilled containers are advised to take heap snapshots via Chrome DevTools before auditing their own application code.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in