How to Fix Aw, Snap! Out of Memory Error in Google Chrome

Browsing complex single-page applications, web spreadsheets, or interactive 3D web graphics in Google Chrome only to have the tab crash with the sad-folder screen and the diagnostic message Aw, Snap! Error code: Out of Memory halts productivity. While you might assume your physical RAM is completely saturated, Chromium enforces an internal memory ceiling (typically 4 GB per tab on 64-bit systems) to prevent a runaway tab from crashing the entire operating system. Addressing browser memory allocation limits, expanding virtual paging files, and auditing memory leaks resolves the crash permanently.

Close Memory-Intensive Browser Tabs and Audit Chrome Task Manager

Each active tab and browser extension operates within an isolated renderer process. Background web applications can consume gigabytes of RAM invisibly.

  1. In Google Chrome, press Shift + Esc to launch the dedicated Chrome Task Manager.
  2. Click the Memory footprint column header to sort all active processes in descending order of RAM consumption.
  3. Identify tabs or background extensions consuming more than 1,000,000K (1 GB) of memory.
  4. Select the runaway process and click the blue End process button at the bottom.
  5. Refresh only the specific tab you need to resume working with clean memory state.

Increase the Windows Virtual Memory Paging File Size

If physical RAM is constrained, Windows relocates inactive memory pages into a virtual pagefile on disk (pagefile.sys). If this file is too small or disabled, Chrome cannot allocate additional memory heaps.

  1. Press Windows Key + R, type sysdm.cpl, and press Enter to open System Properties.
  2. Switch to the Advanced tab and click Settings under the Performance section.
  3. In the Performance Options window, navigate to the Advanced tab and click Change… under Virtual memory.
  4. Uncheck Automatically manage paging file size for all drives.
  5. Select your primary SSD drive (C:) and choose Custom size.
  6. Set the Initial size to 1.5 times your physical RAM and the Maximum size to 3 times your physical RAM (for example, on a 16 GB PC, set Initial to 24576 MB and Maximum to 49152 MB).
  7. Click Set, click OK, and reboot Windows to commit the new virtual memory pool.

Enable Chrome Memory Saver and Clear Compiled Shader Caches

Chrome includes built-in performance automation designed to release memory from dormant background tabs automatically.

  1. Click the three vertical dots in the upper-right corner of Chrome and select Settings.
  2. Click Performance in the left sidebar navigation menu.
  3. Ensure the toggle switch for Memory Saver is switched On.
  4. Set the discard rate to Moderate or Maximum depending on your hardware capacity.
  5. Next, press Ctrl + Shift + Delete, select All time, check Cached images and files, and click Clear data to wipe bloated WebGL shader caches.

Launch Chrome with the High Memory Heap Command-Line Flag

Web developers and power users compiling large codebases or rendering massive maps can elevate Chrome’s internal V8 JavaScript memory ceiling.

  • Right-click your Google Chrome desktop shortcut and select Properties.
  • In the Target field, move your cursor to the very end of the line outside the quotation marks, add a space, and paste:
    --js-flags="--max-old-space-size=8192"
  • Click Apply > OK and launch Chrome using this modified shortcut. This raises the single-tab V8 heap allocation limit from 4 GB to 8 GB.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.