Ondrej Hudecek

// mixed notes

Tag: wsl

WSL CPU usage, killing the task

From time to time, the wslservice.exe task spikes at around 80-90 % CPU usage. It can't be killed by closing the WSL terminal window.

I have to launch an elevated command prompt (or Powershell) and execute this command to kill the process:

taskkill /F /im wslservice.exe

Then I can launch it again without the CPU spike.

Tags: wsl