Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What tools and techniques do you use to fix browser memory leaks?

I am trying to fix memory leaks in IE 7. Using Drip for investigations but it is not helping much when most dynamically generated DOM elements do not have unique ids.

Tips?

like image 342
Tahir Akhtar Avatar asked Sep 18 '08 18:09

Tahir Akhtar


2 Answers

You should try the Javascript Memory Leak detector developed internally at Microsoft.

like image 105
Eran Galperin Avatar answered Oct 08 '22 01:10

Eran Galperin


Well, Your best bet is to understand what causes them, so you can look critically at your code, identify patterns that may cause a leak, and then avoid or refactor around them.

Here's a couple of links to get you started, both very informative:

  • http://www-128.ibm.com/developerworks/web/library/wa-memleak/
  • http://msdn.microsoft.com/en-us/library/bb250448.aspx
like image 21
Dan Avatar answered Oct 08 '22 01:10

Dan