Skip to content

WSL 2 consumes massive amounts of RAM and temporary Solution #6451

@wlya

Description

@wlya

WSL 2 starts using huge amounts of RAM after a while, just using it like normal. Vmmem is using 7 GB of my 16 GB of RAM and not returning any, even though Ubuntu is actually using much less.

sudo su
echo 3 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 1 > /proc/sys/vm/drop_caches
sync

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions