Debugging memory leaks in Internet Explorer - javascript

Is there any good tool that helps with troubleshooting and debugging memory leaks in Internet Explorer?

Take a look at IE-Sieve

Chrome inspector have capabilities to take memory snapshots under profiles tab.
DynaTrace may help.

Hey -- not sure about analyzing tools, but I know with my mac I can take a snapshot of a process and view it's trace of virtual addresses.
I don't know how much use this would be to you, but perhaps some?

Related

Chrome is not running javascript garbage collector

we have a single page application built with javascript, angular, etc.
noticed that in Chrome (only) the memory usage is rising until the tab crash with the "Aw snap" message.
seems like Chrome is not running the garbage collector when it should.
after some research with old Chrome versions i've found that in version 61 everything works very good and the memory usage is very minimal, but in v62 and onward (including canary v66) the GC is not collecting, resulting in memory usage up to few giga. until it crash.
once i open the devtools the GC is collecting as it should and memory usage is normal again.
any idea what is happening?
Chrome developer here. It's hard to guess what might be going on. Please file a bug at crbug.com/new, include repro instructions, and post the bug number here.

Javascript: Memory control - watch on what it's particularly used

Is it possible to track down(profiling) on what particularly memory were used.
For example this object eats this much memory, this one this much etc.
Thanks ;)
Using Chrome you are able to make a heap snapshot:
Open Developer Tools (F12)
Go to 'Profiles' tab
Click an 'eye' icon to make a snapshot
Browse created snapshot for desired object
In some browsers you can. For instance, in Google Chrome the location about:memory will give you detailed information about memory usage.
There are a number of tools available for this. One of which is JavaScript Memory Validator, it's a paid for product, but has a free trial.
Mozilla also has a list of useful js performance tools listed here.

Finding memory leaks in JavaScript using firebug?

Are there any add-ons for Firefox that I can use to find out with part of the JavaScript causes memory leaks?
I've got nothing for firefox, but the webkit inspector in Chrome has a profiler built in that is great for that kind of thing.
As an added bonus it also shows you all browser events such as repaints, so you can engineer your code to have the least impact on the browser.
Use Drip.exe / IEleak, I used it a lot to search for memory leaks!
Other hits:
jQuery itself prevents a lot of memory leaks!
Test your code with http://jslint.com
There is a tool by Microsoft itself, but I don't know it is up to date: http://blogs.msdn.com/b/askie/archive/2008/12/31/javascript-memory-leak-detector-for-internet-explorer.aspx
There is also integration with Visual Studio: http://berniesumption.com/software/how-to-debug-javascript-in-internet-explorer/
There is a good article about mem leaks http://www.ibm.com/developerworks/web/library/wa-memleak/
http://www.debugbar.com/?langage=en
The best memory profiler I've found is for IE (supports even IE6 ;-). Give it a go - you will be surprised how good it is:
http://ajax.dynatrace.com/ajax/en/

Memory Leaks in Browser

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
Look at this IBM article on Memory leak patterns in JavaScript
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.
Link

Any recommendation for IE 6 / 7 Javascript Memory Inspection tool?

I am looking for an IE 6 / 7 plug-in or something like Firebug_Lite thing that can show the memory usage in runtime, as well as the allocation of memory of each object or variable. Anyone know what tool has this functionality? Thanks.
You could try Drip for memory leaks but in my experience that's pretty much it for IE. Let's wait for better responses :)
Well. i found out there is a tool called Javascript Memory Validator. BUt it is expensive and seems like only work for Firefox. And it is hard to use.
Still looking for a good IE tool for checking the javascript performance & memory allocation.

Categories