Question about consistently increasing number of nodes, listeners and heap? Is this a memory leak?
Was doing some performance profiling because I was experiencing the memory leak issue in nuxt/devtools with Node V22. (this issue https://github.com/nuxt/devtools/issues/761#issuecomment-2545569905). So the following observations are with dev tools turned OFF in local development. Or in a deployed production environment.
My question is why are the number of nodes, and therefore listeners and heap size consistently increasing? See memory profile screenshots from chrome devtools.
I'm not saying this is a problem because the experience of using the website is still fast and snappy. But I'm curious if this would technically be a memory leak because the heap is still trending upwards as you can see in the screenshots.
Out of curiosity I profiled the deployed site on ui.nuxt.com and observed the same pattern.
First photo is my application in local dev, with devools turned off.
Second photo is the production ui.nuxt.com website as a sanity check. Displays same pattern of consistently increasing nodes and heap size.
The way I tested was just using the site and clicking a bunch of random links and buttons.
Let me know if there is more profiling info you need.
My question is why are the number of nodes, and therefore listeners and heap size consistently increasing? See memory profile screenshots from chrome devtools.
I'm not saying this is a problem because the experience of using the website is still fast and snappy. But I'm curious if this would technically be a memory leak because the heap is still trending upwards as you can see in the screenshots.
Out of curiosity I profiled the deployed site on ui.nuxt.com and observed the same pattern.
First photo is my application in local dev, with devools turned off.
Second photo is the production ui.nuxt.com website as a sanity check. Displays same pattern of consistently increasing nodes and heap size.
The way I tested was just using the site and clicking a bunch of random links and buttons.
Let me know if there is more profiling info you need.


GitHub
The bug Creating a bare Nuxt project with npx nuxi@latest init project and starting it with npm run dev causes severe memory leak (most of the time). This happens on Windows with Node v22+. This ...