-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Nuxt memory leak universal mode #7915
Comments
What is the value of |
@galvez My
My quick-dirty-bandaid fix/workaround was to remove the usage of the /**
* Bandaid to resolve the issue with store.registerModule
* since we're not using registerModule anywhere.
*/
export default ({ store }) => {
delete store.registerModule
} The same test with my workaround: |
@WilliamDASILVA should be fixed in latest Nuxt release. |
Versions
Reproduction
Additional Details
nuxt.config
store.js
Steps to reproduce
I've build my Nuxt app that uses Vuex, then I sent a certain amount of requests to it, the memory usage keeps growing without coming down. At some point (approx. 4-6 hours in a normal usage, less than a minute during a stress-test), the server crashes because it runs out of memory.
By removing the lines in the
.nuxt/index
and.nuxt/dist/server/server.js
:Then restarting the server and doing the same stress-test, I'm not getting the huge memory leak spike.
What is Expected?
I expect the server to live longer than some hours in production, in a real usage. I don't want to restart it everytime it crashes with a balancer to have a good uptime.
What is actually happening?
I'm getting a huge memory usage and the server keeps crashing.
The text was updated successfully, but these errors were encountered: