Turbopack excessive memory usage (~7GB+) in dev mode compared to Webpack (~3GB) #93451
2hmad
started this conversation in
Turbopack Error Report
Replies: 2 comments
This comment was marked as spam.
This comment was marked as spam.
|
Since this is WSL + VS Code Remote + a large app, I would separate three things before treating it as one Turbopack memory bug:
Those point to different problems. A useful triage plan:
The trace file is useful, but the next most valuable data is whether memory is retained while idle or only spikes during compile. A high compile peak may be expected for a very large graph; unbounded growth after HMR edits is much more actionable as a leak. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When running Next.js in development mode with Turbopack enabled, memory usage grows significantly (up to ~7GB), even with memory limits configured. Switching to Webpack under the same project reduces memory usage drastically (~3GB), suggesting a Turbopack-specific issue.
Environment:
Steps to reproduce:
bun devtopCurrent behavior
Trace file:
Download trace file
All reactions