Rajcomputers: How to Detect Internet Explorer Memory Leaks

Wednesday 1 June 2011

How to Detect Internet Explorer Memory Leaks





With web applications pushing the technology to the limits, memory leak issues have gained prominence and need to be dealt with.

What is IE Memory Leak?

To begin with let me clarify that memory leaks are not restricted to Internet Explorer but it can happen in any browser. We are talking primarily about IE as over the course of my time, I have found it to cause this issue more often than any other browser.
Memory leak is a condition where your web application keeps consuming more and more memory as you keep navigating or refreshing. This causes decrease in responsiveness of the application and in situations can crash the browser itself.

Can we predict IE memory leaks?

Justin Rogers, a Microsoft employee, discusses in detail the patterns of memory leak in his article titled Understanding and Solving Internet Explorer Leak Patterns.

How can I try out and see memory leaks?

Please read Memory Leak in Internet Explorer - revisited which has code samples for you to try out and see for yourself.

How to test for memory leaks?

Drip, a memory leak detector for Internet Explorer, is a free open source tool available for download here.
It is an executable which can be downloaded and run directly.
Drip Memory Leak : www.microsoft.com
(you can see in the graph above for www.Microsoft.com site that IE is continuously consuming more and more memory)
Start the application and enter the URL of the site you want to monitor. Click the “Auto Refresh” button. It will keep refreshing the site and plot the memory graph at the bottom.

How to diagnose memory leak issues?

There is a screencast on Diagnosing JavaScript Memory Leaks in IE which might be useful resource to start with.

Resources

No comments:

Post a Comment

Note: only a member of this blog may post a comment.