-
Notifications
You must be signed in to change notification settings - Fork 193
[Bug]: memory leak problem #5120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@quininer cc~ |
I believe we have recently fixed part of this issue (web-infra-dev/rspack@6362a79 and web-infra-dev/rspack@d71a6ab), and I will continue to investigate the remaining memory growth causes. |
Thanks a lot. |
"What's more, I found that version 1.3.9 performs better than version 1.1.6 or other versions in terms of memory leak issues, so I believe we have partially fixed this problem. However, the memory leak problem still remains, and I hope we can fix it as soon as possible. I also want to ask about another issue: the memory usage of rsbuild should increase and then decrease later. Is this the expected behavior? In the 0.x versions, I observed that memory usage increases when I press |
I think this is because of the behavior of mimalloc , which doesn't return memory immediately. and some objects are held by js, which will also cause this behavior. |
Version
System: OS: macOS 13.5 CPU: (10) x64 Apple M2 Pro Memory: 23.32 MB / 16.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 135.0.7049.115 Safari: 16.6 npmPackages: @rsbuild/core: ^1.3.9 => 1.3.9
Details
When saving Vue or config files in the project using cmd+s, Rsbuild restarts and subsequently increases the memory usage of the rsbuild-node process. This memory increase is significant and correlates with the size of the project. For instance, with an initial project size of approximately 1.9GB, each save operation typically results in an additional 0.5GB of memory usage. This issue is particularly severe, as it can lead to insufficient memory on my development machine after just 15 saves, severely impacting the development experience.
Steps to Reproduce
Expected Behavior
The memory usage of the rsbuild-node process should remain stable and not increase significantly with each save operation. (I try vite or webpack and found it will not increase the memory usage)
Reproduce link
https://github.com/karlsbeard/rsbuld-memory-leak#
Reproduce Steps
pnpm i
pnpm dev
The text was updated successfully, but these errors were encountered: