WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL Causes Massive ammount of memory usage when running with docker, related to #4166

Open LavHinsu opened this issue 6 years ago • 3 comments

Environment

My Windows build number: [run cmd.exe /c ver]:

'\\wsl$\Ubuntu\home\lav'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
Microsoft Windows [Version 10.0.19042.630]

My Distribution version: [On Debian or Ubuntu run lsb_release -r in WSL] :

Release:        20.04

Whether the issue is on WSL 2 and/or WSL 1: [run cat /proc/version in WSL]

Linux version 4.19.128-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Jun 23 12:58:10 UTC 2020

Steps to reproduce

  1. start wsl and docker desktop
  2. run a docker compose and pull up any image
  3. close the docker desktop from windows
  4. memory usage still remains

WSL logs:

Expected behavior

After Closing docker, windows should claim the memory back from WSL

Actual behavior

vmmem still uses massive amount of ram

LavHinsu avatar Nov 25 '20 11:11 LavHinsu

Workaround:

  1. in a PowerShell, do wsl --shutdown

  2. Docker shows a popup "The WSL 2 backend was shutdown unexpectedly ..." Click "Yes".

  3. If you missed the popup, just restart Docker.

nicolas-tg-ch avatar Jan 19 '21 08:01 nicolas-tg-ch

/dupe #4166 #6280

therealkenc avatar May 11 '21 00:05 therealkenc

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

ghost avatar May 11 '21 00:05 ghost