Skip to content
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

useHead memory leak #13847

Closed
baronkoko opened this issue Apr 26, 2022 · 1 comment · Fixed by nuxt/framework#4666
Closed

useHead memory leak #13847

baronkoko opened this issue Apr 26, 2022 · 1 comment · Fixed by nuxt/framework#4666
Labels

Comments

@baronkoko
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v16.14.0
  • Nuxt Version: 3.0.0-rc.1
  • Package Manager: npm@8.3.1
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Create a new Nuxt 3 app, build it and run the built app.

Describe the bug

I noticed that the production app is constantly increasing the amount of used memory. So, I made measurements with Chrome allocation instrumentation on the timeline and made 10000 requests to this app via ab (Apache HTTP server benchmarking tool).

Results:

Screenshot 2022-04-26 at 18 03 23

Thus, it showed a large amount of data that remains even after their use. Namely, the potential source of the problem is metaConfig.globalMeta.

So, after that, I commented this line.

Screenshot 2022-04-26 at 18 07 04

And made the same measurements again.

Results:

Screenshot 2022-04-26 at 18 10 43

And the problem disappeared. The selected size decreased from 46.3 MB to 9.1 MB.

Can you look at this, please?

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

Thanks - really appreciate it.

I'm closing to track in #13397 but this debugging should be hugely helpful in resolving.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants