Friday, January 14, 2011

Windows 7 is eating up all my memory!

In response to a question I had once apon a time (when Vista first came out), and have recently seen posted ... "Where did all my free memory go?"

Does a process have  a memory leak?  The memory usage may not be a leak at all.  It could just be the OS caching to memory (a good thing).  Since Windows Vista, Windows has managed its memory a bit differently.  Windows tries to think more intelligibly with regard to the type of work that you typically do with your computer.  It caches information in memory, ready for your use.  It might preload certain information such as program you use frequently, or documents, or other information to have it ready at your fingertips.  This is called SuperFetch and there are a couple of decent articles on this that I found with a quick search:

This actually speeds up performance of the machine significanly.  It keeps track of what memory it can free up for the applications that you are running as well, releasing the cache as necessary.

Task Manager

This appears in the Cached section of the Windows Task Manager.  You can also look at the Resource Monitor (see image)  and look at the memory tab in there to see a graph of In Use, Standby (essentially cache), and unused memory.  If any program needs more memory than is currently free, the operating system releases it appropriately from the Standby memery - all transparent and unnoticed by the user.

Resource Monitor

This doesn't necessarily mean that you don't have a memory leak, but you may need to look at more than just total memory in use.  If you really do have a leak and your In Use is max'd (resource monitor) or Available shows near 0 (task manager), you can take a look at the individual process memory usage as seen in task manager, or in the Resource Monitor mentioned (memory tab).

One thing that I've found useful is to also look at the Disk tab in the Resource Monitor, as sometimes a program is hitting the disk so hard that it becomes a bottleneck to the whole machine.  On that tab, blue represents the percentage of active time.  You can sort by Total (B/sec) and then see what processes are hitting the hard drive for information the most, and that might help you track things down a bit as well.

It appears that MS antimalware software (I use Microsoft Security Essentials) is working double time at the moment

I hope that helps.


  1. No answers, the just same question! What's the answer kids?

  2. Agreed on all the posts I've read here. Unfortunately I can only give you a simple way I follow to manage memory and speed. First off, I switch off at the wall after shutdown whenever I do not use the PC. Saves power. Next I regularly check to delete all start-up apps in the Start Menu. Check All Users especially, Guest and all other accounts under docs & Settings. Glary Utilities and What Runs? are two free home apps and has different approaches respectively. Gives you a wider overview of PC use. OK, this goes for my XP. Check out for Vista & 7. Glary has good things like file, shortcut and registry clean ups and defrags.

    This kind of clean up is relevant since the multi-tasking character of a PC says it is essentially a table look-up device. Yes, it can do other things, but this part is one huge reason why your PC slows down. Open (launch anew from scratch) any/many app/s say thirty to fifty times and see what happens. First thing to happen is your drive spinning up hysterically. Really frightening. 60 deg C easily.

    Task Manager, Glary and What? all have process killers, but tread softly here. TM will warn you in some cases of critical system apps not to be killed, some completely verboten. You can still kill others. IE will die and restart automatically. Winlogon will crash the PC.

    Sometimes you will see reams of svchost instances. Leave these alone. Clean up your PC so that there are as few as possible automatic starts and loads. You may also see apps on TM that you have closed after use. These you can kill.

    Set you PC on auto updates. I use Firefox but do IE updates (IE runs desktop toolbars). Do Adobe Flash et al as well.

    Good luck.

  3. This comment has been removed by the author.