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