-
Notifications
You must be signed in to change notification settings - Fork 41
Description
I pretty sure I have a really big memory leak
I'm using memwatch-next and it regularly report heap growth such as
Memory leak detected:
{ growth: 512,
reason: 'heap growth over 5 consecutive GCs (12s) - 409.2 mb/hr' }
This is resulting in the app crashing fairly regularly
Using chrome inspect i taken some snapshots while doing several uploads and one thing that keeps increasing is the strings. On the screenshots attached the thing that looks strange is when you view the details on the string the seem to be a never ending nested "event created"
One thing I believe this is due to is the use of debug which is logging every event to memory. So if you have a lot of events it going to cause issue as far as I can tell. debug doesn't serve any purpose in production so there should be an option to turn it off, or preferable have it turned of by default which the option to turn it on if needed.
Happy to be proved wrong but app seem to have consistent memory usage when sync isn't running.

