JavaScript Memory Leak Detector for Internet Explorer

Paolo Severini, a developer from Microsoft's GPDE team in Europe has created a debugging tool to detect memory leaks in JavaScript code and is downloadable here. It can be installed as an Internet Explorer band and it is expressly designed to find memory leaks in JavaScript code that runs in Internet Explorer.

Like any IE Band, the JavaScript Memory Leak Detector is a COM in-process DLL loaded in the Internet Explorer process. The fact of living inside the IE process allows it to easily intercept some of the API calls made by the IE code. In this case, we are interested in intercepting every call that creates a Jscript engine.

The Jscript engine is a COM object, and it is instantiated by Trident (mshtml.dll) with a call to CoCreateInstance(). Therefore, the first operation made by the tool will be to intercept the calls to CoCreateInstance made by the mshtml module.

Please check out the blog about this very useful tool, then download the thing and give a try!

Note:  There are no details available on how this tool interacts with Internet Explorer 8.0, so please keep this in mind if you are running the beta.


The IE Support team

Comments (11)
  1. George Jempty says:

    How does one use this tool?  Does it automatically get invoked when running IE?

    I presume the link to the blog post in the article might have addressed these issues.  However that link is now broken.

  2. However that link is now broken.

  3. Jagga says:

    Is there any exposed API to get the information of DOM objects in memory using this tool?

  4. Hey there.  Anybody ever look at this thing?

    You got a busted link where you instruct people to "Please check out the blog about this very useful tool":

    Maybe somebody could fix that, or kill the link?

    This tool is something I would deem "less than useful"…  Downloaded it, plinked and plunked around, but nothing happened in the panel, and there are no instructions to be found…

    Thanks, MS!


  5. Neal says:

    I search all over the web to find a tool to troubleshoot your crap browsers and finally!! I found something. But oops… your link to it has been broken for at least a year. Typical.

    And you wonder why you're losing market share to Apple…

  6. Neal says:

    By the way, your footer is broken in IE. Nice. Oh and this page takes forever to load.

    Thanks a pantload.

  7. tara says:

    JavaScript Memory Leak Detector (v2)

    Original download link in (…/javascript-memory-leak-detector-v2.aspx) doesn't seem to work.

    It's available here:…/

  8. Dragos Rusu says:

    You have to go in "Tools" => "Explorer Bars" => "js memory leak detector"  as for the IE developer toolbar.

    This will enable the plugin in the footer.

  9. Spartan! says:

    Spartan will be better at leaks? : )

Comments are closed.

Skip to main content