Memory leak / Map
Vue version
3.2.47
Link to minimal reproduction
https://github.com/chenxingzhi1/vue-map.git
Steps to reproduce
- toggle between pages multiple times
- check memory usage after GC
What is expected?
The memory should go back to initial level.
What is actually happening?
memory keeps growing
System Info
System:
OS: Windows 10 10.0.22621
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 4.47 GB / 15.70 GB
Binaries:
Node: 16.17.1 - C:\Program Files\nodejs\node.EXE
npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22621.1265.0), Chromium (110.0.1587.57)
Internet Explorer: 11.0.22621.1
npmPackages:
vue: ^3.2.47 => 3.2.47
Any additional comments?
No response
I can't really reproduce any leak. My experience:
- In a prod build, memory always drops back to <10MB for me on the Home route, once I finished switching back & forth
- In dev, Memory always drops back to ~67MB (size of one component), no matter the route I stop on. It seems the previous component is being cached, likely due to devtools. But that's not a leak, as memory does not keep growing.
Can you provide more info?