-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Vue 3.5.6 memory leaks #11956
Comments
@ftrsoft @aurelsserban |
currentInstance in watch scheduler Scopes
When components are destroyed, ComponentInstance in state.dep.subs.sub.scheduler Scopes, can not gc. for example:Using pinia-plugin-persist can cause this problem |
@yysanf |
@ftrsoft @aurelsserban @yysanf |
I don't think the issues from @aurelsserban @yysanf are the same one as the original issue opened by @ftrsoft . The The original issue, however, is a regression according to @ftrsoft, but we cannot investigate it without a proper reproduction. |
@yyx990803 @edison1105 sorry for being late. I can confirm that in my case vue v3.5.7 and v3.5.8 solved the memory leaks in our webapp. Thank you. |
To be honest there is a memory leak in my project too, which I'm trying to localise |
This comment was marked as off-topic.
This comment was marked as off-topic.
@agracia-foticos |
@ftrsoft looks like this is on the server-side only. I think you can use |
@konstantin-karlovich-unbiased-co-uk can you confirm it appears only after 3.5.5 and not 3.5.4 or before? |
I can send you a snapshot of the memory that has a memory leak. But only to an email |
@yyx990803 today I will test all versions of vue, determine which memory leaks starts and take a memory snapshot. Yesterday I checked 3.5.1 it is Ok |
I test different version, there are result: Snapshot of Node heap with vue 3.5.6: Heap-20240925T143110.zip |
@ftrsoft |
Test Vue 3.5.8. Memory leaks.
Heap-20240925T151234.zip On version 3.5.5 change page1 to page2 add only 0.5 - 1 Mb of memory, and then release it. On v.3.5.8 add ~6Mb and not release |
@ftrsoft Thanks ❤️ |
There are not many reactivity related changes between 3.5.5 and 3.5.6 The most likely commit is #11944 / c74bb8c Since we have published packages for every commit, can you try the version for the commit right before that one by using the following version in your "vue": "https://pkg.pr.new/vue@cbc39d5" If |
I try on production server. |
Then can you try the following:
|
I'm wondering if it could be The #11884 removed support for
|
There are no leaks in these:
There can not be resolve:
|
Please try this preview package #12097 (comment) |
Please tell me what I should specify in the file |
@ftrsoft @bfe33d8 |
|
Vue version
3.5.6
Link to minimal reproduction
Steps to reproduce
Update prodject to vue 3.5.6
What is expected?
Memory leaks. In 1 hour, memory consumption increased from 200 MB to 500 MB.
When I go back to version 3.5.5, everything becomes normal
What is actually happening?
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: