Javascript Memory Leak Diagnosis

What is meant by Memory leak?
Memory leakage refers to obtrusive memory handling techniques adopted in programs which leads to increased load time and poor performance.

Various scenarios can cause memory leaks which can range from unhandled memory garbage to cyclic references to error in code logic. One best suggestion given in the javascript forums to overcome this problem is to nullify the element once its usage is over.

A simple and readily available tool to check on the memory leaks in the system is the Windows Task Manager » Performance to visually monitor the effect of cyclic references or unhandled situations in your Javascript code.

Another tool is Leak Monitor extension for Firefox.

Screencast on IE Memory Leaks can be viewed at

If you are interested in learning Javascript you can watch a series of lectures from Yahoo Video Library on Javascript by Douglas Crockford. Some interesting points like (i) is NaN a NaN? ii) What is the type of Nan? are discussed in his lectures.

Another interesting article on Memory leakage pattern.


Written by kurinchilamp

Website: http://

Leave a Reply

Your email address will not be published. Required fields are marked *