How to check and test how much memory a javascript application leaks


iam looking for some tools or ways to detect memory leaks, slow methods in my javascript app.

You need to use the profiler; I recommend Chrome's. In the profiler the steps are

  1. Go to the profile part of the developer tools
  2. Get to the part where the slow js is
  3. Start recording
  4. Start the suspect code
  5. Stop recording

After that, the profiler will tell you everything you want to know about how many objects there are, how much time is spent in each method, etc...

The procedure should be similar with Firebug on Firefox.