Problems and testing

Your computer is low on memory: what the Windows warning means

The "Your computer is low on memory" warning means programs have claimed almost all the memory Windows can promise, which is your RAM plus the page file on your drive. It doesn't always mean your RAM is full. The usual fixes are to close or update the program that's hogging memory, keep the page file turned on and set to automatic, and add RAM only if you hit the limit in normal use.

What does the warning actually mean?

When a program starts, it asks Windows to set aside memory for it. Windows keeps a running total of everything it has promised, called the commit charge. The most it can promise is the commit limit, which Microsoft defines as your physical RAM plus the size of all page files combined.

The catch is that promised memory isn't the same as used memory. Microsoft's own performance guide points out that committed memory may never actually be written to. So you can see this warning while Task Manager still shows gigabytes of free RAM: programs have reserved space they aren't using yet, and Windows has run out of room to promise more.

When the commit charge reaches the limit, Windows first tries to grow the page file, if it's set to be managed automatically. If it can't, programs start failing to get memory. That's when you see the warning, and if nothing changes, apps can crash or freeze.

You may also see a gentler message saying the system is low on virtual memory and Windows is increasing the size of the paging file. HP says this is normal when the page file is set to a custom size that's too small, and it shows up more with very large photos, videos and other big files. "Virtual memory" here just means the page file.

How do I check how close I am to the limit?

Open Task Manager (Ctrl+Shift+Esc), go to Performance, then Memory. The "Committed" line shows two numbers, such as 22/38GB. The first is the commit charge and the second is the commit limit.

If the first number regularly creeps close to the second, you're running out of memory, even if "In use" looks fine. Microsoft's performance guide uses 75% of the limit as the point where a system is getting close to trouble. Our guide to the Windows page file explains the limit in more detail.

Which program is causing it?

Windows often tells you. When it detects a low memory condition, it writes an entry to its event log that lists the programs using the most memory at that moment.

  1. Press Win+X and open Event Viewer.
  2. Go to Windows Logs, then System.
  3. Click Filter Current Log and type 2004 in the event ID box.
  4. Open the newest entry from Resource-Exhaustion-Detector.

It says "Windows successfully diagnosed a low virtual memory condition" and lists the top three programs, with how many bytes each had claimed. In one case on Microsoft's Q&A forum, the culprits were the Windows print spooler, a printer installer and a Norton antivirus component, which is a good reminder that the problem isn't always the big app you have open.

You can also check live. In Task Manager, open the Details tab, right-click a column header, choose Select columns and add "Commit size". Sort by it. Microsoft's guide says this kind of measure (private bytes) is the right one to watch, not the default memory column, and that a process whose number keeps climbing over time is the one to suspect.

What usually causes it?

Cause How to spot it Fix
A program leaking memory Its commit size keeps growing for hours Update or restart it; see our memory leak guide
Page file turned off or set too small The commit limit is about the same as your RAM, or only a little above it Set the page file back to automatic
Drive nearly full Little free space on C: Free up space so the page file can grow
Driver leak "Non-paged pool" in Task Manager grows to several GB Update the driver; network drivers are a common culprit
Genuinely heavy work Commit charge near the limit with only normal apps open More RAM

The page file setting is the one people trip over most. Plenty of old tweaking guides tell you to turn it off if you have lots of RAM. Microsoft says that with no page file, the commit limit is slightly less than your RAM, so a 16GB PC can only promise programs about 16GB in total, however much of it sits unused.

How do I fix it, step by step?

  1. Save your work and close what Windows names. The warning usually lists programs. Closing them frees their claim right away.
  2. Restart. If a program was leaking, this resets it. If the warning comes back after a day or two of normal use, a leak is likely.
  3. Put the page file back to automatic. Press Win+R, type sysdm.cpl and press Enter. Go to Advanced, click Settings under Performance, then Advanced again, then Change under Virtual memory. Tick "Automatically manage paging file size for all drives", click OK and restart.
  4. Free up space on your system drive. A system-managed page file grows when it needs to. Microsoft says it can grow up to three times your RAM or 4GB, whichever is larger, but only if the drive has the room.
  5. Find and deal with the culprit. Use the 2004 event or the Commit size column. Update the program, check its settings (browsers and some games let you limit memory), or replace it.
  6. Update drivers and Windows. Driver leaks show up as non-paged pool growth, not as a program in the list.

What shouldn't I do?

Don't turn the page file off to "save" memory. It lowers the commit limit and makes the warning come sooner.

Skip "RAM cleaner" or "memory optimizer" apps. Microsoft's performance guide says they force Windows to throw away its disk cache and trim programs' memory, which causes a lot of unnecessary disk activity. They don't raise the commit limit, so they can't fix this warning. The same goes for registry cleaners and paid "PC repair" tools that some sites push alongside this error.

When is it time for more RAM?

If the page file is on and automatic, nothing is leaking, and the commit charge still sits close to the limit while you run your normal apps, you've outgrown your RAM. A bigger page file will stop the crashes, but your PC will stutter whenever it leans on the SSD.

As a rough guide, 16GB still works for many games and everyday use but is getting tight, and 32GB is the comfortable choice for gaming with a browser and Discord open. Our guide on how much RAM you need for gaming goes into detail. If you can't upgrade yet, our guide to making 16GB go further has practical ways to cope.

The short version

  • The warning means programs have claimed nearly all of your RAM plus page file, not necessarily that RAM is full.
  • Check the "Committed" numbers in Task Manager, and event ID 2004 in Event Viewer to see which programs caused it.
  • Keep the page file on, set to automatic, with free space on the drive.
  • A program whose commit size keeps growing is leaking; update or replace it.
  • If you hit the limit in normal use with everything set right, buy more RAM.

Sources