views:

95

answers:

2

Hi Experts,

Please tell me how to find out the memory leak in browser and what is the best way to solve the problem. Is there any guideline for writing javascript to avoid memory leak?

And also if you can tell me some problem which you experienced related to memory leak and how did you debug and find out the solution would provide a great understanding to me.

Thanks

+4  A: 

Look at this IBM article on Memory leak patterns in JavaScript

Romain Hippeau
+3  A: 

For Internet Explorer you can try sIEve or the JavaScript Memory Leak Detector from Microsoft (The link to the documentation seems to be broken). In Firefox there is the Leak Monitor Add-on. There is also a list of tools for Firefox here.

UPDATE:

There is a new version of the Microsoft memory leak detector at the link below.

http://blogs.msdn.com/b/gpde/archive/2009/08/03/javascript-memory-leak-detector-v2.aspx

Garett