Excessive amount of images on a page causes Firefox to chew away at memory and VM

RESOLVED DUPLICATE of bug 213391

Status

()

Firefox
General
RESOLVED DUPLICATE of bug 213391
12 years ago
12 years ago

People

(Reporter: Micheal Cottingham, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

Attached is a gzip that will generate the test case. It is written in PHP. Works on Windows and Linux, just modify the paths.

Once generated, point your browser to the generated ffdos.html and watch the memory and virtual memory. Eventually Windows will warn you that it has to increase virtual memory and Firefox will continue to chew away until the process is killed. Tested on 3 Windows XP systems with Firefox 1.5.0.1 and 1 SuSE 9.3 with Firefox 1.5.0.1. Once killed, memory may return to normal or you may have to reboot in order to clear the leak.

I tried with this with just images, but the problem didn't reappear, it seems images and maps are necessary. On my system, I was able to get this working with the default 300 set in the scripts.

I attempted to follow http://dbaron.org/log/2006-01#e20060110a but was unable to get a log file generated.

Reproducible: Always

Steps to Reproduce:
1. Download the test case, launch the scripts and allow them to generate the images and html file.
2. Browse to the html file and watch the memory and processor usage
3. Memory will continue to climb until the process is killed while processor will generally stay near normal

Actual Results:  
Firefox consumes memory until process is killed.

Expected Results:  
Loaded the webpage and then cleared the memory once done.

The generated images are 1024x768 with a simple black background. Attempted to generate 2x2 images but results could not be duplicated.

Using the Noia 2.0 eXtreme 2.992 theme on this computer.
(Reporter)

Comment 1

12 years ago
Created attachment 211665 [details]
PHP scripts to generate the testcase

Comment 2

12 years ago
This looks like a dupe of bug 213391. The images on the page are stored in the memory cache, and limiting the size of the memory cache would limit the memory use for images on the page in the testcase.

Comment 3

12 years ago

*** This bug has been marked as a duplicate of 213391 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → DUPLICATE

Comment 4

12 years ago
I can Confirm this. The viritual memory is not clearing, and you must reboot the  PC, you can't do anything more when Firefox run.

Version

Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

You need to log in before you can comment on or make changes to this bug.