Running out of RAM can confuse the operating system so badly it simply can no longer keep the screen — or anything else — running. In the words of Dr. McCoy, “He’s dead, Jim.”
I’ll review the causes, and what steps you might need to take.
Become a Patron of Ask Leo! and go ad-free!
There are many reasons your screen can turn off or go black. It could be due to a screen saver; a cable could have become disconnected; or the monitor could have been turned off.
Since you’ve associated this with your computer having exhausted all available RAM, none of those are particularly likely. It’s much more likely your computer has simply crashed. That means Windows is no longer running, your applications are no longer running, and the CPU is probably in some confused state it can’t get itself out of.
Rebooting is your only option.
Windows memory management
Windows does everything it can to try to manage memory quickly and effectively. Generally, it tries to warn you when available RAM is running low. Usually prior to that happening, your system’s performance will suffer — often greatly — as Windows attempts to compensate for the lack of available RAM by using virtual memory (VM). Virtual memory is simply disk space set aside to be used as if it were RAM. Disks are significantly slower than RAM, and as a result, the system can become excessively sluggish.
There’s also a limit to how much VM Windows will use. When both RAM and VM have been exhausted, your system is truly and completely out of memory, and will likely crash, spontaneously reboot, or come to some other kind of halt.
Particularly when resources are that low — being completely of out of memory — the crash can look like the screen going black. Windows doesn’t have the resources it needs to run and can’t update the screen any more.
Prevention is the solution
The solution, of course, is not to let your system get into a situation where it runs completely out of RAM.
That also requires at least a guess as to why it’s running out to begin with.
Your system may not have enough RAM to run everything you’re trying to run at the same time. There are two solutions to this dilemma:
- Add more RAM, if your system supports it.
- Don’t run so many programs at the same time.
Exactly how much RAM is enough, and how many programs is “too many”, depends on what you’re trying to do and the needs of the programs.
Poorly written software
If a program you’re running is causing the problem, the tactics above only postpone the problem, at best.
It is possible for software to simply manage memory poorly. That means the application keeps on asking for more and more RAM until the system runs out. This is referred to as a “memory leak”. Depending on the application, memory leaks can be quick — the problems associated with the leak become apparently very quickly — or slow, meaning the leak is so insignificant you never notice it.
If you are running a poorly written application that manages memory poorly, there’s little to be done. If this happens repeatedly, monitor what programs are using RAM, see who’s using it up, and if you detect a consistent repeat-offender, reach out to the software vendor for a fix.
If you found this article helpful, I'm sure you'll also love Confident Computing! My weekly email newsletter is full of articles that help you solve problems, stay safe, and give you more confidence with technology. Subscribe now and I'll see you there soon,