Replies: 11 comments 5 replies
-
My system UI is working 24/7 and memory consumption was flat all time, until this day it starts from 100mb and after some time increasing. |
Beta Was this translation helpful? Give feedback.
-
Are you creating any signals outside of hooks? Signal::new will be owned by the current scope which means if you call |
Beta Was this translation helpful? Give feedback.
-
Almost all signals are global. |
Beta Was this translation helpful? Give feedback.
-
I believe early 0.5 alpha was not affected by this, but not 100% sure |
Beta Was this translation helpful? Give feedback.
-
Is this code open source at all? Or can you post some of the signal bits? I can't replicate this in chrome - the memory usage stays flat when using global signals. Also in your screenshot the memory usage is 164,298,752, which is roughly 160mb. That's not 3gb so maybe it's some other site? We have two options here:
Did some debugging and memory usage does grow with hotreload - and we have hotreload enabled by default in debug mode now. Perhaps you're editing files locally? We leak memory to support hotreload - it's just designed that way and we really don't have a desire to change it. Can you verify this still happens in release? |
Beta Was this translation helpful? Give feedback.
-
Updated gist without hot reload traces. |
Beta Was this translation helpful? Give feedback.
-
After i commented all components in code and started to uncomment each part separately i was finally able to isolate memory consumption source, this is event handlers:
|
Beta Was this translation helpful? Give feedback.
-
We tracked in down and it's been fixed for 0.5.1 - thanks for the allocator traces - that was exactly it! |
Beta Was this translation helpful? Give feedback.
-
And it is still looks like there is some minor leak exists. |
Beta Was this translation helpful? Give feedback.
-
Finally it is gone, i hope :) |
Beta Was this translation helpful? Give feedback.
-
After recent update i noticed significant increase of browser memory consumption.
With early 0.5 ot was less than 100mb and now it is about 3G!!!
Beta Was this translation helpful? Give feedback.
All reactions