Memory leak #653
Unanswered
ivannkf
asked this question in
Help & Questions
Memory leak
#653
Replies: 1 comment 2 replies
-
VPS's |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've been using vite-plugin-ssr for a while, and it's working quite well for us. The problem is that we have a memory leak in production and we can't find the root cause. The main retained objects are vue-router objects (we use it as our router currently) and also pageContext objects. Here are some screenshots of the heap allocation (there are many objects of each one of the screenshots):
In the second one you can see that there is a retainer from VUE_DEVTOOLS_PLUGINS, which as far as I know should not happen in prod. I double checked and the NODE_ENV is production, so not sure why it's there.
We use the code of the example (create a new router for every new app in every request).
I've been trying to fix it for days now without any luck. Hopefully someone here can help out.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions