Home > Net >  Windows 10 consumes all free memory if hyper-v is On
Windows 10 consumes all free memory if hyper-v is On

Time:10-27

Windows 10 is consuming all free memory when docker desktop is installed and hyper-v is on. I don't have any container running right now but memory usage is around 99%. I have 24GB of RAM on the system.

If I reboot the system, memory usage eventually gets to 99% after sometime (no containers are running).

If I disable Hyper-V then the memory usage always below 50%. But I need it enabled so I can use Docker desktop.

Is there anything that can be done to reduce the memory usage when docker desktop isn't running? I've already tried .wslconfig and wsl --shutdown but still memory usages is 99%.

Task Manager:

The process tab doesn't show anything that's consuming memory.

enter image description here

RamMap:

enter image description here

CodePudding user response:

If you are running a database in one of your containers, and have dynamic memory enabled, it will tend to eat up as much memory as it can get.

You can limit WSL memory usage using .wslconfig

CodePudding user response:

Creating a 48GB Pagefile seems to have resolved the issue. I had only 10GB Pagefile for the 24GB memory. I had to create the pagefile double the size of memory.

Now the system is caching and lots of free memory (3GB to 6GB) is available.

  • Related