There has been a lot written recently about the "memory leaks" of Firefox 1.5. The lead engineer for Mozilla Firefox, Ben Goodger posted about this over on the Inside Firefox blog.
Apparently one possible "leak" is actually a feature - Firefox caches a number of the previously viewed pages in memory so that should you want to go "back" they don't have to be downloaded again.
Obviously this can be a tremendous performance boost when going back but the default rules that Ben posts abouts got me a little concerned. Here is a table of the system ram size and the default number of cached pages:
As you can see if you have 1GB of RAM or above it will cache 8 pages by default, but if you have 512MB then it will only cache 5. I have 1GB in my machine but will be caching the same about in memory as a 4GB machine - so I changed this setting to only cache 6 pages.
Here's how I did it:
Technorati Tags: Firefox, Mozilla, Memory Leak, Ben Goodger, Andrew Beacock
Apparently one possible "leak" is actually a feature - Firefox caches a number of the previously viewed pages in memory so that should you want to go "back" they don't have to be downloaded again.
Obviously this can be a tremendous performance boost when going back but the default rules that Ben posts abouts got me a little concerned. Here is a table of the system ram size and the default number of cached pages:
RAM | Number of Cached Pages |
32MB | 0 |
64MB | 1 |
128MB | 2 |
256MB | 3 |
512MB | 5 |
1GB | 8 |
2GB | 8 |
4GB | 8 |
As you can see if you have 1GB of RAM or above it will cache 8 pages by default, but if you have 512MB then it will only cache 5. I have 1GB in my machine but will be caching the same about in memory as a 4GB machine - so I changed this setting to only cache 6 pages.
Here's how I did it:
- On a new tab type
about:config
(this displays all the configuration values)
- type
browser.sessionhistory.max_total_viewers
in the "Filter" box
- By default it will be showing the value of
-1
(meaning use the default value from the above table)
- Double-click the
-1
, a popup box will appear, replace the-1
with6
and click OK
- Restart Firefox
Technorati Tags: Firefox, Mozilla, Memory Leak, Ben Goodger, Andrew Beacock
Comments
That depends on the page. Some pages use more memory than others (think large pictures etc.)...