Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Memory leak in Firefox 4.0.1 with jQuery Ajax?

  • 2 replies
  • 51 have this problem
  • 9 views
  • Last reply by Rakeka
  • Archived

Hello - I think, as many others have encountered, that Firefox 4.0.1 has a memory leak issue.

I found this when working with the jQuery library's ajax functions, and I created a simple test case. I've outlined this in detail here: http://forum.jquery.com/topic/memory-leak-with-jquery-1-6-1-and-firefox-4-0-1. Basically, the sample I created loads jQuery from Google's API CDN, creates a function that makes a simple ajax request (and does nothing else), then sets an interval that runs the function once every second. The net result (over a long enough period of time) is that no additional memory should be required after this function has run more than once.

If I monitor the memory used by Firefox, after about 5 minutes there is a clear and consistent trend of memory usage increasing, with no end in sight (note that within the first 5 minutes, the memory may decrease initially...but that's not a long term trend). I can reproduce this problem 100% of the time with Firefox, in safe mode, on both WinXP and Linux. I cannot reproduce the same problem with any other browser.

So...is this a bug? I've been searching various sources, and I cannot find a definite answer. Since this is only happening with Firefox, then it seems to me that this is where the problem lies.

Hello - I think, as many others have encountered, that Firefox 4.0.1 has a memory leak issue. I found this when working with the jQuery library's ajax functions, and I created a simple test case. I've outlined this in detail here: [http://forum.jquery.com/topic/memory-leak-with-jquery-1-6-1-and-firefox-4-0-1 http://forum.jquery.com/topic/memory-leak-with-jquery-1-6-1-and-firefox-4-0-1]. Basically, the sample I created loads jQuery from Google's API CDN, creates a function that makes a simple ajax request (and does nothing else), then sets an interval that runs the function once every second. The net result (over a long enough period of time) is that no additional memory should be required after this function has run more than once. If I monitor the memory used by Firefox, after about 5 minutes there is a clear and consistent trend of memory usage increasing, with no end in sight (note that within the first 5 minutes, the memory may decrease initially...but that's not a long term trend). I can reproduce this problem 100% of the time with Firefox, in safe mode, on both WinXP and Linux. I cannot reproduce the same problem with any other browser. So...is this a bug? I've been searching various sources, and I cannot find a definite answer. Since this is only happening with Firefox, then it seems to me that this is where the problem lies.

Modified by mgl1

All Replies (2)

i have also come across this problem with exactly the same results, would appreciate some feedback on the issue.

I've noticed the "same" thing. When working with jQuery, after some time navigating in my page (refresh, making ajax requests, sending forms, etc), the memory usage increases absurdly and the program becomes considerably slow (memory usage when I was typing this was approximately 1.5gb).

I'm using only linux, don't know about the windows version.

From "ps aux": %CPU %MEM VSZ COMMAND 8.4 14.5 1724468 /usr/lib64/firefox-4.0.1/firefox-bin

14.5% of 8gb of memory.