Jump to content

Memory Leaks


jasper182

Recommended Posts

I've recently been working with some javascript on a project and I am not very experienced with it.  Anyways, I'm working with doing some simple AJAX, but there is a memory leak somewhere in my page.  After 20 minutes or so FF gets extremely sluggish and needs to be restarted.  I make sure to delete all variables that are created inside of called functions, but other then that I was wondering what else I should look for to stop these memory leaks.  Thanks in advance for any help you can offer me.
Link to comment
Share on other sites

The closure concept is the most difficult javascript concept I've come across by far.  In the last month I have read maybe a dozen articles on closures and memory leaks and I still have not gotten a good handle on it.  It seems that the ways in which you can go wrong with closures is numerous and can be devilously sutle. 

I think there are many large web sites that have leak problems.  I have been suspicous for some time that even google pages have a leaking problem because of increased browser lookups I get after using their site.

Is anybody aware of a study someone might have done of memory leaking on major web sites?  I'd be interested in seeing that.  It would seem that you should be able to just use a leaking tool on their web pages without having to have access to their servers.

Link to comment
Share on other sites

  • 10 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.