How to Fix "Out of Memory" Error in Windows

The "Out of Memory" error in Windows can occur for several reasons, including low RAM, a full hard drive, or excessive data usage by programs. This guide provides steps to troubleshoot the issue and enhance system performance.

1. Restart Your Computer

The simplest first step is to restart your computer. This will end temporary processes that may be consuming significant memory, freeing up system resources.

2. Close Unnecessary Programs

Ensure that you don’t have too many programs running at the same time. Open Task Manager (press Ctrl + Shift + Esc), identify processes with high memory usage, and end them. This is especially useful for browsers with multiple open tabs.

3. Increase Virtual Memory (Paging File)

The paging file, or virtual memory, helps offset RAM shortages. To increase its size:

  • Open the Control Panel and go to System and Security > System.
  • Select Advanced system settings and open the Advanced tab.
  • Under “Performance,” click Settings, then go to the Advanced tab again.
  • Select Change under "Virtual memory" and set the paging file size manually.

4. Free Up Disk Space

Low disk space on the system drive can also cause memory issues. To free up disk space:

  • Open This PC and right-click on the system drive (usually C:).
  • Select Properties, then click on Disk Cleanup.

5. Scan for Viruses

Some viruses and malware can cause memory leaks. Use antivirus software to perform a full system scan and remove any detected threats.

6. Update Drivers and Windows

Outdated drivers or an older version of Windows can also affect memory usage. Ensure your system and all drivers are up-to-date.