-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
[Bug]: Memory Leak in Dev Server Causing System to Run Out of Application Memory #8976
Comments
I can report the same issue with rspack, I use |
Not sure how to reproduce this amount of memory consumption, but I found there might be something related to memory reseting in mimalloc. I changed memory semantic from |
@h-a-n-a I'm ready to test possible fixes as just running dev server for a while increases memory consumption for me, it wasn't a problem in v1 |
@uladzimirdev Do you mind adding a reproducible demo? Which version of rspack do you use that doesn't have this issue? You may also try @rspack-canary/[email protected] |
This comment has been minimized.
This comment has been minimized.
@uladzimirdev Would you please try again with install-rspack? |
@h-a-n-a I used it to install canary, let me try one more time. yeah, no difference. It looks like it happens mostly when I switch branches without restarting dev server, memory grows with every HMR in action |
Same here. Our application starts out with under 2GB of RAM usage for the rspack-node process, and easily accumulates around 20GB during usage. We are on Are there any plans to investigate / fix this? Thank you for consideration. |
Same for us, when starting rspack the memory usage is ±4GB and growth to around 50GB while developing. |
Version
Details
While using
rsbuild dev
, I encountered a significant memory leak that caused the system to run out of application memory. This issue makes the system unstable and forces the user to quit applications to free up resources.CodeSandbox: https://codesandbox.io/p/github/Fausto95/react-native-web-rsbuild/main?import=true
Reproduce link
https://github.com/Fausto95/react-native-web-rsbuild
Reproduce Steps
pnpm install
pnpm start:web
/apps/rnw/src/App.js
Activity Monitor
and observe the continuous increase in memory usage for thersbuild-node
processThe text was updated successfully, but these errors were encountered: