react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

Memory leaks

Open AntonyHatchet opened this issue 11 years ago • 4 comments

Hi there! i found a one thing on your app. Every time when we reload the page V8 consumes little memory . If you refresh the page several times (10-15 ), you can dial up to 70 MB of memory usage that is not released .

AntonyHatchet avatar Apr 01 '15 15:04 AntonyHatchet

+1 Every time when we reload +20MB

NikitaKis avatar Apr 07 '15 14:04 NikitaKis

(>O_o<) 20MB?!

AntonyHatchet avatar Apr 08 '15 17:04 AntonyHatchet

I made some tests with Chrome Timeline function and there is no memory leaks. Click f12, click the "Record" button, do some navigation in the website and try to hit at least 50% of the buffer. When you know that you did some work on the web app, click the "Collect Garbage" button, wait 1-2 secs and click the "Stop" button. You will see nice picture of the whole application memory. Trust me, there is no memory leaks! :) The browser seems to garbage collect all JS objects and DOM nodes at given interval, but not listeners. This can be seen in all applications, not react based only. I don`t know why, but maybe there is good reason. This is not memory leak, because when i click the button "Collect Garbage", all listeners are freed from the memory. I can give you a nice picture to prove that image

tinternet avatar Jun 15 '15 19:06 tinternet

I'm going to close this issue for now. Feel free to reopen if needed.

koistya avatar Feb 21 '16 08:02 koistya