Firefox Hits 4GB RAM with Many Tabs: Real Fixes That Work

Firefox memory spikes to 4GB when you open 15+ tabs, slowing your whole system. Here's why it happens and step-by-step fixes that actually reduce RAM use.

You're working on a research project, and you've got 18 tabs open—a few PDFs, a YouTube video, two Google Docs, and a dozen news articles. Suddenly your cursor starts stuttering, and the fan on your laptop sounds like a jet engine. You open Task Manager (or Activity Monitor) and see Firefox eating 4.1 GB of RAM. This isn't a rare fluke—it's a pattern that hits Firefox users who keep many tabs alive, especially after a long browsing session.

Why does Firefox balloon to 4GB?

Firefox runs each tab in its own process (they call this multi-process or e10s). That's good for stability, but it means every tab you open adds overhead—including memory for the process itself, the page's JavaScript, images, and any extensions that inject code into that page. A single video or a heavy site like Facebook can easily consume 300–500 MB on its own. With 15–20 tabs, the math gets ugly fast.

There's also a known memory leak in some Firefox versions (especially 95–115 era) related to the SessionStore feature. It keeps a snapshot of each tab's state so you can restore your session after a crash. Over time, those snapshots grow and aren't cleaned up properly, so memory climbs even if you're just sitting on the same tabs.

The real fix isn't to close tabs—it's to adjust Firefox's behavior and clear out what's stuck. Here's how to do it, step by step.

Fix 1: Use Firefox's built-in memory reduction

  1. Type about:memory in the address bar and press Enter.
  2. Click the "Minimize memory usage" button on the right side of the page. This forces Firefox to release unused memory back to the OS.
  3. Wait 10–15 seconds. You should see the task manager show a drop in Firefox's RAM (often 30–50% less).

This is a quick fix, but it's not permanent. If memory climbs again after an hour, move on to the next steps.

Fix 2: Turn off automatic session restore

Firefox's session restore is convenient, but it's a memory hog. When you have many tabs, it keeps serialized copies of every tab's data in RAM. Here's how to stop it from doing that:

  1. Go to about:preferences#general in the address bar.
  2. Scroll down to the "Startup" section.
  3. Change "Open previous windows and tabs" to "Show your windows and tabs from last time"? No—that's the same thing. Instead, select "Show your home page" or "Show a blank page". This prevents automatic restore on startup.
  4. If you don't want to lose your session, use the "Firefox View" feature (the icon that looks like two overlapping rectangles in the toolbar). It lets you pick which tabs to restore manually, without loading them all at once.

After changing this, restart Firefox. You'll notice the initial RAM usage on startup is much lower because it's not loading every tab's content.

Fix 3: Reduce the number of content processes

By default, Firefox can use up to 8 content processes. Each one has its own overhead. Reducing that number can cut memory significantly, though it may make tab opening slightly slower (but not much).

  1. Type about:config in the address bar. Click "Accept the Risk and Continue" if prompted.
  2. In the search box, type dom.ipc.processCount.
  3. Double-click the value and change it from 8 to 2 (or 4 if you have more than 8GB RAM).
  4. Click the checkmark to save, then restart Firefox.

This limits the number of separate processes Firefox can spawn. After restart, you'll see fewer entries for Firefox in Task Manager, and total memory usage should drop by 10–20%.

Fix 4: Unload tabs automatically with an extension

If you're a tab hoarder like me, you need something that puts idle tabs to sleep. The best I've found is Auto Tab Discard (available on addons.mozilla.org). It unloads tabs you haven't viewed for a set time, freeing up memory while keeping the tab visible in the tab bar.

  1. Install Auto Tab Discard from the official Firefox add-ons site.
  2. Click its toolbar icon and set "Discard after" to 30 seconds of inactivity (or 5 minutes if you want to be gentler).
  3. Enable "Discard on startup" to unload all old tabs when Firefox opens.

After enabling, you'll see tabs gray out when they're unloaded. Clicking a grayed tab reloads it instantly. This keeps memory usage flat even with 40 tabs open.

Fix 5: Turn off hardware acceleration (if it's causing leaks)

Hardware acceleration offloads video and graphics to your GPU, but in some cases—especially with older graphics drivers—it causes memory to bloat. Try turning it off to see if it helps.

  1. Go to about:preferences#general.
  2. Scroll to the "Performance" section.
  3. Uncheck "Use recommended performance settings" and then uncheck "Use hardware acceleration when available".
  4. Restart Firefox.

You might see slightly higher CPU usage for videos, but if the RAM spike disappears, you've found the culprit. If not, re-enable it—the real issue is elsewhere.

What to check if it still fails

If you've done all the above and Firefox still eats 4GB, check your extensions. A single bad extension can cause a massive leak. Go to about:addons and disable all extensions, then restart Firefox and open your tabs again. If memory stays low, re-enable extensions one by one, checking memory after each activation. I've seen ad blockers and password managers cause this exact symptom.

Also, make sure your Firefox is up to date. Mozilla has fixed several memory leaks in recent versions—I've had good results with Firefox 128 and later. You can check by going to about:whatsnew or just clicking the menu (the hamburger icon) → Help → About Firefox.

And if you're still stuck, there's one more nuclear option: refresh Firefox (the "Refresh Firefox" button in about:support). It resets your profile without deleting bookmarks or passwords, but it wipes extensions and custom settings. That's a last resort, but it's solved the problem for many users who had corrupted profile data.

Start with the quick fixes—about:memory and session restore—then move to the process count and an unloader extension. That combination will usually bring Firefox back under 1.5GB even with 20 tabs open, and your system will thank you.

Related Errors in Software – Web Browsers
ERR_HTTP2_PROTOCOL_ERROR Chrome ERR_HTTP2_PROTOCOL_ERROR: Fix HTTP/2 Issues PR_CONNECT_RESET_ERROR Fix Firefox PR_CONNECT_RESET_ERROR on specific sites Firefox Crashes on YouTube Videos with Hardware Acceleration Chrome Freezing on Windows 11 After Update? Try These Fixes

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.