Next.js Daily: Plugging the Long-Running Server Leaks
A cluster of fixes this cycle targets memory growth in long-lived Next.js servers—stray timeouts, orphaned compression streams, and unbounded caches—while a parallel effort cleans up source map accuracy in the new dev validation worker.
Duration: PT2M24S
Episode overview
This episode is a short developer briefing from Next.js Daily.
It explains recent repository work in plain language.
- Show: Next.js Daily
- Published: 2026-07-26T06:03:47Z
- Audio duration: PT2M24S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning. It's July 26th, 2026, and this is Next.js Daily.
The clear signal today: multiple contributors independently hunted down memory leaks in standalone Next.js servers, the kind that only show up after hours or days of production traffic.
Pete Hunt landed two of them. PR 96161 fixes the Edge sandbox's timeout manager, which was tracking every fire-and-forget setTimeout call forever, even after it ran — causing step-like heap growth toward an out-of-memory crash. PR 96173 fixes something nastier: when a client disconnects mid-response, the compression…
Dan Abramov extended that same theme into caching. PR 96229 and its follow-up, 96231, fix the filesystem route cache and several other byte-budgeted LRUs that were counting cached values but not the URL keys themselves — so long or unique URLs, bot crawls, and dynamic routes could inflate memory beyond the…
The second theme is source map accuracy in the new dev validation worker, which runs on its own thread and doesn't share Node's per-isolate source map cache. Hendrik Liebau shipped a run of fixes — reading chunk maps directly from disk for Turbopack in PR 96218, falling back to in-process validation for Webpack in…
What's…
Nearby episodes from Next.js Daily
- The Long-Running Server Cleanup
- TypeScript 7 Fallout and the Great Prefetch Rewrite
- Cache Correctness Gets Serious
- Security Patches and Cache Correctness
- Turbopack's Tree-Shaking Push and the GC Foundation
- Weekly Recap - Navigation Reliability and Turbopack Performance
- The Source Map Memory Chase
- Trimming the Fat in Dev and Render