Firefox uses a shit ton of RAM

Open

Firfox uses a ton of RAM, around 450 - 500MB with a single tab and it's incredibly slow.

Chrome uses 150 - 200 MB

Normally I would use chrome but I use firefox and some other browsers for cross browser testing.

I've tried removing all addons and even reinstalling firefox but that didn't do anything.

My laptop has an i5-5200u and 16GB of ram

Help is appreciated.

Posted May 29, 2017, 12:41 PM UTC

26
ColdestCore•

That'd odd because I find that Chrome uses more RAM than any of my Firefox or installed variants. Try resetting to default and reinstalling.

I am using Waterfox right now with about 6 tabs open and I have ~745 MB being used.

3
FakeAdminAccountOP•

Nope, didn't do anything.

My pc has the exact same settings and the same addons but without the problem.

1
Rolcol•

Are you counting every single process for each browser? That Chrome number seems too low, but that Firefox number seems normal.

Both browsers use multiple processes for browsing, but Firefox currently only uses one for the browser interface, one for the web content, and if you're on Windows, one for the GPU. Chrome uses one for the interface, one per extension, one for the GPU, and one per site instance. There should be more Chrome processes than Firefox processes listed in the task manager.

Chrome has a built-in task manager of its own that tells you what each process is for. Shift+Escape on Windows, Window > Task Manager on macOS. In Firefox, the about:performance page can list the memory usage of web content processes.

The web has gotten so large and heavy, browsers require a lot more memory compared to a decade ago.

1
FakeAdminAccountOP•

Here is a screenshot of the task manager

chrome has 4 tabs open while firefox has 1 tab open.

here is a screeshot of chrome task manager and firefox about:performance

I don't know if that's normal for firefox but it's very sluggish.

1
Rolcol•

Adding up the memory usage of all the processes listed in the Chrome Task Manger totals to around 1GiB. With shared memory between the processes, the real number is probably smaller. It appears that Chrome is using way more memory than Firefox. The Windows Task Manager is sorting programs that have a UI before any that don't. This means that Chrome and Firefox's web content processes are listed lower in the process list. A more detailed view into Firefox's memory usage (beyond about:performance) can be found in the about:memory page.

Firefox is definitely using less memory here. Performance issues with Firefox can be caused by different things. It could be bad hardware acceleration due to blacklisted or old graphics drivers, heavy JavaScript on the pages you're visiting, bad plugins or extensions, or an old profile directory.

When you reinstalled Firefox, were you given an option to delete your settings? If not, the old profile never moved. If you want to try a new profile, go to about:support, and click on Refresh Firefox. It'll import your cookies and history, but it'll reset extensions and browser settings.

If your graphics drivers are up to date, the profile isn't the issue, and you can't use Firefox without those extensions, Chrome may be a better browser for you. Mozilla is making big changes to Firefox to improve its performance, but the process is slow. Electrolysis, their project for separate processes for web content, is moving forward with more than one web content process, but that's tentatively set to release with version 54. 54 should move to stable in about a week or two. A lot of changes for performance are still in the pipeline, including the new Photon interface that is focused on better performance.

If you'd like to try a less stable, but newer version of Firefox, the Nightly branch is where all the development is happening.

1
FakeAdminAccountOP•

Seriously, thank you for your detailed response.

1