NyxBoostDownload

Why a program uses so much RAM: peak, cache or leak

Your browser holds several gigabytes and Task Manager shows memory 80% used. That is not always a problem. Here is how to tell a working peak and the Windows cache from a leak, when memory really runs short, and why clearing RAM on a timer does not help.

Memory In use Cache: given back on demand PeakLeak

Two different numbers in Task Manager

Open Task Manager (Ctrl+Shift+Esc). On the Processes tab the Memory column shows what each program holds — by default its own memory, without the Windows libraries it shares with other programs. Performance → Memory shows the whole PC. Windows 11 moved the tabs to a menu on the left, Windows 10 has them along the top, but the fields are the same.

FieldWhat it means
In use (Compressed)Memory currently held by programs, drivers and Windows itself. In brackets: the part Windows compressed right in RAM instead of writing it to disk.
CachedRecently read files and data Windows keeps in memory in case they are needed again. As soon as a program needs the memory, the cache gives it up.
AvailableWhat programs can get right now: free memory plus most of the cache.
CommittedHow much memory programs have asked the system for, and the limit: RAM plus the page file.

A Microsoft engineer explains these fields in detail in a post about the Performance tab. Memory compression arrived in Windows 10: Windows compresses rarely used pages so it has to go to the slow disk less often (Windows blog).

Peak: the program is busy

A game loads a level, an editor opens a big project, an archiver unpacks files — memory grows while the work goes on. When the job is done, some of it comes back. A program may keep part of it so it doesn't have to ask again a minute later: that's fine as long as the number stops growing.

In browsers every tab and extension is a separate process, so twenty tabs easily take several gigabytes. In Microsoft Edge inactive tabs go to sleep by default and release some resources (Edge performance features); other browsers have similar settings.

Cache: Windows uses what is free

A large Cached number is not a sign of shortage — it means the memory isn't sitting idle. While no program needs it, Windows keeps recently opened files there, so launching a program again or loading the same data is faster than from disk. Memory that every program has let go of stays cached until it is needed for something else (process working set).

That is why programs that "clean RAM" on a timer speed nothing up: they throw the cache away, show lots of free memory for a minute, and then Windows reads the same data from disk again. Regular memory cleaning isn't needed.

Leak: memory grows and never comes back

A leak is a bug: the program takes memory and forgets to give it back. Signs:

  • with the same work — same tabs, same document, or idle — the process's memory grows hour after hour;
  • closing tabs or documents, or going back to the game menu, doesn't bring it down;
  • after restarting the program it starts at a normal level and creeps up again.

Leaks usually build up slowly, over hours. That is how developers look for them too: Microsoft's debugging guide watches a process for hours through the Private Bytes counter — memory the process allocated for itself alone (finding a user-mode memory leak). If it keeps rising under the same load, it looks like a leak.

How to check it yourself

  1. Start the program and bring it to its usual working state: the same tabs, the same project.
  2. Note the number in the Memory column on the Processes tab. Repeat after an hour and after three, without opening anything extra.
  3. If the number holds or swings around one level, it's a peak or the program's own cache. If it climbs a step every hour, it looks like a leak.
  4. For a precise picture there are free Microsoft Sysinternals tools such as RAMMap: it shows how much memory is in use, cached and free.

What to do in each case

CaseWhat to do
Peak
Grows during work, drops after
Nothing. If memory runs short, close extra programs for a while.
Cache
Large Cached, enough Available
Nothing: it's working as designed.
Leak
Grows for hours, resets only on restart
Update the program (for games, the graphics driver too), disable extensions or mods one at a time, report it to the developer. Until it's fixed, restart the program.
Shortage
Available near zero, disk constantly busy, switching windows lags
Close what you don't need, trim startup. If it's like this every day, there's too little RAM for your workload.

What not to do

  • Don't install "memory boosters" that clean RAM on a schedule: see the cache section above.
  • Don't turn off the page file to "keep everything in RAM". The commit limit is RAM plus the page file; without it programs hit the limit sooner and can close with an error, and Windows can't save a dump after a crash (introduction to the page file).

Where NyxBoost helps

Part of your memory is held from sign-in by programs that started on their own. The Startup section in NyxBoost puts them in one list — registry entries, startup folders and scheduled tasks — and turns off only what you choose, with a way back. How to decide what to turn off is in the article on checking startup apps. A related setting is background activity of Store apps.

Settings from this article

More articles

Download NyxBoost