Share via

Out of memory even though there still have tons of memory

Anonymous
2024-11-09T20:17:37+00:00

My laptop keeps throwing "Out of memory" errors even though Task Manager shows plenty of free memory.

Here's my setup:

  • Windows 11 Home 22631.4317
  • AMD Ryzen 9 5900HS
  • RTX3070 laptop ver.
  • 16GB Onboard RAM (Samsung chips 3200MHz ddr4)
  • 16GB additional RAM (Kingston 3200MHz ddr4)
  • Virtual memory disabled

Usually, I use 10 to 11GB of RAM. At this point, the page currently in use on browser will sometimes have a short no response moment but will be fine after a few sec. When I go gaming, the RAM used will go up to around 21GB. And now I'm getting this "Out of memory" error from every softwares while there still is 10-ish GB of free RAM.

What I've tried so far:

  1. Run the DISM tool to check the issue. ➡ No issue found.
  2. Run system file checker. ➡ Problem is still there.
  3. Clean reboot. ➡ Not help at all.
  4. Check boot options in msconfig. ➡ No, I didn't linit the maximum memory.
  5. Reset BIOS settings. ➡ Not fixing anyhting. Also, this is a laptop, they don't even allow me to change ram settings.
  6. Use Nvidia mats and Memtest86 to test VRAM and RAM. ➡ No errors were shown on the test.
  7. Take out the additional RAM to test if is it really a memory problem. ➡ Yes, it is. Now when I try to use more than 10GB of RAM, everything crashes. Browser shows "Out of memory" and also a pop-up "Not enough virtual memory" message. Discord goes freeze. Even Task Manager automatically closes.

(Screenshot of Task Manager after everything crashes. The additional RAM is taken out in this test.)

Since Nvidia mats and Memtest86 show no errors. So... Windows' problem? I know enable virtual memory will help but it just treating the symptoms, not the cause. I want Windows to fully use all the physical memory first. I have been searching for a while, and most of the search results just tell you how to fix it when it is really out of memory which is not my case. I will keep clean reinstall Windows as my final resort. Hopefully I won't need to do it.

Thanks in advance for your help!

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-10T10:47:21+00:00

    Hello, Un Anno

    Welcome to the Microsoft Community.

    Hello, thank you for your feedback here, it looks like you are experiencing an “Out of Memory” error even though the physical memory shows enough free memory.

    Based on the information you have provided and the troubleshooting steps you have tried, here are some possible causes and suggested solutions:

    1. Memory Stick Mismatch or Hardware Issue

    Even though you mentioned that the 16GB memory sticks (16GB onboard + 16GB additional memory) are the same speed (3200MHz DDR4), there may still be a compatibility issue or an underlying hardware issue with the memory modules themselves that is causing instability. The fact that you have tested unplugging one of the memory and it crashes when using more than 10GB of memory also provides a clue to the problem.

    Suggested Action:

    Test each memory stick individually again to confirm that there is no fault, even though Memtest86 found no errors. Sometimes memory sticks may pass the basic test but still cause problems under load.

    Try installing the memory sticks on another computer (if possible) and check how the memory sticks behave on the other system.

    Try different slots (if your laptop supports them) to see if the problem is with the slots.

    Check for dual-channel configuration issues: sometimes memory sticks from different manufacturers or batches can be unstable even if they have the same specifications.

    1. Check if the integrated graphics card is taking up memory

    You mentioned that your system has RTX 3070 graphics, but also integrated graphics (if your CPU comes with an integrated GPU). Sometimes, even if you are using a discrete graphics card, the integrated graphics card still reserves a portion of the system memory, which may result in less memory being available to the system.

    Recommended Action:

    Check the BIOS/UEFI setup to see if there is an option to allocate too much memory to the integrated graphics card. If there is a “UMA Frame Buffer Size” or similar option, try reducing it or setting it to “Auto”.

    Confirm that the discrete graphics card is being used instead of the integrated graphics card. You can check which graphics card is being used in the Performance tab of Task Manager. 3.

    1. Check for Windows memory management issues

    Although you have disabled virtual memory (page files), some applications (especially browsers or large software) may cause out of memory errors when the physical memory is close to full, especially when the system memory is about to run out.

    Recommended Action:

    Temporarily re-enable virtual memory (by setting the page file size to “System Management”), although this is not the root cause of the problem. This will help alleviate the crash and allow you to troubleshoot further.

    Check for memory leaks: Some applications (especially browsers) may have memory leaks and crash even if the system shows enough free memory. Check which applications are taking up the most memory in the task manager.

    Check Windows performance settings: Open Control Panel > System > Advanced System Settings > Performance (Settings) and make sure that settings such as “Tune for optimal performance” are configured correctly. 4.

    1. Update or reinstall your graphics card and chipset drivers.

    It is possible that there is an issue with your graphics card or chipset driver that is causing the memory to be allocated incorrectly.

    Recommended action:

    Update the NVIDIA graphics card driver and chipset driver (from the laptop manufacturer or AMD website).

    If the drivers are already up-to-date, try a clean install of the drivers. Sometimes, residual old drivers may cause memory management problems.

    Use DDU (Display Driver Uninstallation Utility) to completely remove the old graphics card drivers and reinstall the latest drivers.

    1. Check for system or software problems

    If the Task Manager closes automatically when it crashes, there may be a system or application error that is causing problems with memory allocation.

    Suggested Action:

    Check for Windows updates: make sure your system has the latest updates installed, as there may be patches for your problem.

    Try entering Safe Mode to see if the problem persists. If there is no problem in Safe Mode, it may be caused by some startup applications or background services.

    You can refer to the following thread to enter safe mode:

    Windows startup settings - Microsoft Support

    1. Hardware failure or compatibility issues

    Since you are using a laptop, hardware related issues are also a possibility.

    You can choose to just reinstall Windows and if this problem still occurs after that, then my suggestion is that you may need to contact the vendor for a hardware check.

    Best regards

    Bobhe | Microsoft Community Support Specialist

    4 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-11-12T04:29:50+00:00
    1. Check for Windows memory management issues

    Although you have disabled virtual memory (page files), some applications (especially browsers or large software) may cause out of memory errors when the physical memory is close to full, especially when the system memory is about to run out.

    Recommended Action:

    Temporarily re-enable virtual memory (by setting the page file size to “System Management”), although this is not the root cause of the problem. This will help alleviate the crash and allow you to troubleshoot further.

    1. Check for memory leaks: Some applications (especially browsers) may have memory leaks and crash even if the system shows enough free memory. Check which applications are taking up the most memory in the task manager.

    Check Windows performance settings: Open Control Panel > System > Advanced System Settings > Performance (Settings) and make sure that settings such as “Tune for optimal performance” are configured correctly.

    Thanks to your advice, I have finally located the problem. I'm not out of physical memory but committed memory. My committed memory is 5GB larger than the memory in use. Which explains why I can't use more than 10GB of RAM.

    To confirm that this is the problem. I looked into Details and found multiple programs are taking significantly large amounts of committed memory compared to their memory in use. After I uninstalled the software that had the biggest committed size which cleaned up 1.5GB of space. I'm able to use RAM up to almost 12GB. So yes I'm out of committed memory.Image

    (Left: memory in use. Right: committed size)

    Now this brings up 2 questions and a problem. The question is why there are programs that have large committed sizes but don't write them into memory?

    Image

    (And there even have some use 0 memory. SearchHost is just one of them, there is multiple programs like this.)

    And I am sure I have virtual memory disabled, mean no paging file will be created, shouldn't my memory in use and committed memory be the same size?

    Image

    Am I misunderstanding something?

    The problem is most of those programs are System Program that if uninstalled or disabled will result in the system not functioning properly. I looked around and found that msedgewebview2.exe seems wont affect the system. But how can I disable it? I have Widgets toggled off in setting, but msedgewebview2.exe still running in the background.Image

    Again, thanks in advance for your help!

    2 people found this answer helpful.
    0 comments No comments