Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WSL Keeps crashing when using VSCode

Using a blanco Ubuntu WSL installation from Windows Store, running VSCode from there with repository in the /home folder. No WSL extensions installed.

It is working for some time, but eventually always leads to WSL crashing. VSCode cannot connect, because I can also not connect anymore to the WSL installation by terminal.

enter image description here

Then I end up using wsl --shutdown in cmd and restarting Docker to make it work again for some time. But it keeps coming back.

Any ideas?

like image 236
Z0q Avatar asked Oct 19 '25 12:10

Z0q


1 Answers

The problem is that WSL is running out of memory.

Either extend the memory to WSL in .wslconfig or figure out ways to limit memory usage.

In my case I quit using Docker and ran the application without it.

like image 158
Z0q Avatar answered Oct 21 '25 01:10

Z0q



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!