High Operating Systems ✓ Solution Verified by Community (0+ upvotes)

How to fix error e-outofmemory in Windows 11

Ran out of memory.

65% success rate
👥 0+ users verified
📅 Updated: 2026-08-12
⏱️ 30 min read
Fix based on community reports and expert analysis. Last verified: 2026-08-12 · How we verify fixes
Error Codee-outofmemory
Affected SystemWindows 11 (Microsoft)
DifficultyHigh
Estimated Time30 min
Requires Admin Rights⚠️ Yes
Requires Reboot🔄 Yes

Solution Steps

  1. 1 Press Ctrl + Shift + Esc to open Task Manager. Click 'More details' at the bottom if you see a simplified view. Go to the 'Processes' tab and click the 'Memory' column header to sort by memory usage. Identify any programs using an unusually high amount of memory (e.g., a browser with hundreds of tabs). Right-click them and select 'End task' to free up memory immediately. This gives you breathing room to diagnose the root cause.
  2. 2 Press Windows key + R, type 'msconfig' (without quotes) and press Enter. In the System Configuration window, go to the 'Boot' tab and click 'Advanced options'. Check the box for 'Maximum memory' and enter the amount of RAM you have (e.g., 16384 for 16 GB). Click OK, then Apply, and restart your PC. This ensures Windows uses all your installed RAM, as sometimes it doesn't by default.
  3. 3 Press Windows key + R, type 'sysdm.cpl' and press Enter. In the System Properties window, go to the 'Advanced' tab and click 'Settings' under Performance. In the Performance Options window, go to the 'Advanced' tab and click 'Change' under Virtual memory. Uncheck 'Automatically manage paging file size for all drives', select your system drive (usually C:), choose 'Custom size', and set Initial size to 1.5 times your RAM and Maximum size to 3 times your RAM (e.g., for 16 GB RAM: 24576 MB initial, 49152 MB max). Click Set, then OK, and restart. This expands your virtual memory, which acts as a backup when RAM is full.
  4. 4 Press Windows key + X and select 'Windows Terminal (Admin)' or 'Command Prompt (Admin)'. Type 'sfc /scannow' and press Enter. Wait for the scan to complete (it can take 15-20 minutes). This checks for corrupted system files that might cause memory issues. If it finds problems, it will repair them automatically. After that, run 'DISM /Online /Cleanup-Image /RestoreHealth' and press Enter. This repairs the Windows system image itself. Both commands help ensure your system is stable.
  5. 5 If the error persists, consider physically adding more RAM. Check your motherboard manual for compatible RAM types. Alternatively, use a tool like Windows Memory Diagnostic: press Windows key + R, type 'mdsched.exe' and press Enter, then choose to restart now and check for problems. This tests your RAM for hardware faults.

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Still having issues?

Describe your exact problem to Error Buddy and get a personalized fix in seconds.

🛠️ Try Error Buddy — It's Free