[SOLVED] The Out of Memory Error
A reader asks: 'My computer is giving Out of Memory and Low Memory errors and I can't continue without restarting. Do I need to delete some files, get a new hard drive or is it something else?' Here's the solution to this common problem...
Out of Memory?
A number of different things can cause "out of memory" error messages. Lack of hard disk space is one of them, in some circumstances. But when your computer complains about not having enough memory, it's (almost always) referring to RAM -- the working memory that's installed on your computer's motherboard, not your hard drive. When you turn off your computer, everything in RAM memory goes away. Your hard drive is for permanent file storage.
If you open a lot of programs at once, you may run into an "out of memory" error caused by something Microsoft calls "the desktop heap limitation." Closing some of the open windows before retrying the program may help. But there's also a registry tweak that can eliminate the problem without having to pick and choose which programs remain open. See this Microsoft Support page for details and instructions on how to implement the fix.
Also, you may run out of memory because you just don't have enough memory installed. Remember, this means RAM, and has nothing to do with the space available on your hard drive. If you have less than 1 GB of RAM, you can expect "out of memory errors" often. For Windows XP, 4 GB of RAM is ideal. You'll need a 64-bit version of Windows 7, 8 or 10 to make use of more than 4 GB of RAM. On 64-bit Windows 7 or later, I recommend 8GB or more of RAM. (To find out how much RAM you have, and if you have a 32 or 64-bit system, click Start > Control Panel > System and Maintenance > System.)
Even if you only use one program at a time, an "out of memory" error can be caused by a program that manages memory badly. If you encounter this error with one specific program, you might seek an alternative to it. Open the Windows Task Manager (press Ctrl-Shift-Esc) and click on the Processes tab to see which programs are using the most RAM memory. Clicking on the Mem Usage column header will sort the list for you.
It's not uncommon for web browsers to consume 500MB or even more than gigabyte of RAM memory. Firefox and Chrome seem to gobble up RAM like candy. Some programs just hold on to memory too long, or fail to free it for other applications. These are called "memory leaks" in software. Usually just closing down the offending program and restarting it will bring you back to good. Sometimes you'll need to restart your computer if things get too fouled up.
A handy Chrome extension called The Great Suspender will help if you often have several tabs open at once. This tool can reduce Chrome's memory needs by suspending tabs that you've not touched for a set period of time.
Here's Why I Said "Almost Always" ...
When your computer runs out of physical RAM, it can grab a chunk of hard drive storage and magically create virtual memory. Windows' virtual memory system temporarily stores data that won't fit into RAM in a hidden special file called pagefile.sys. By default, this file grows and shrinks as needed. If there is no free disk space anywhere, pagefile.sys can't expand and you could get an "out of memory" error.
So yes, you can try cleaning up your hard drive to see if that solves your "out of memory" problem, if none of the other remedies above have done the trick. (See my article How to Clean Up Your Hard Drive for some tips and how-to's.) If your hard drive space is critically low, you're probably seeing other error messages indicating that's the case. But it never hurts to tidy up your hard drive.
You can also run into problems if your settings prevent the automatic management of virtual memory. Instead of seeing "out of memory" errors, you might be getting "low virtual memory" errors. See my companion article How to Fix 'Low Virtual Memory' Errors for further instructions.
Your thoughts on the "out of memory" or "low memory" issues are welcome. Post your comment or question below...
This article was posted by Bob Rankin on 27 Mar 2017
|For Fun: Buy Bob a Snickers.|
Zillow, Schmillow - Free Online Home Appraisals
The Top Twenty
[WARNING] Five WiFi Security Mistakes
Post your Comments, Questions or Suggestions
Free Tech Support -- Ask Bob Rankin
Subscribe to AskBobRankin Updates: Free Newsletter
Copyright © 2005
- Bob Rankin - All Rights Reserved
Article information: AskBobRankin -- [SOLVED] The Out of Memory Error (Posted: 27 Mar 2017)
Copyright © 2005 - Bob Rankin - All Rights Reserved