Reputation: 528
I am facing memory leak issue in angular js application. I have tried all the possible solutions like profile tool, timeline and some other tools related to angular js. My Work till now -
Profile Tool
In profile tool JS heap is keep on getting increased but can't able to find the reason for it.
Timeline
It shows there is a possibility of memory leaks but still I don't know how to debug and fix it.
Task Manager
It keep on increasing the memory size.Some time it is getting garbage collected but not significantly.
Please let me know how to debug and find out what could be the issue.Or share your experience if you have faced the same issue.
Upvotes: 9
Views: 974
Reputation:
AngularJS has memory leaks when there are many bindings. Now limitation of angularJS is that it has 2-way binding. So, if you change any value in model, view that triggers $diget(), $watch() loop. So, depending upon how big your application is it consumes memory.
I suggest to try couple of steps:
In my application I reduced watchers and life was easy.
Upvotes: 1