My experience with that is that 100% CPU can happen if the WSL2 image is using more memory than available, and is then swapping. You should be able to check that by looking at the VmmemWSL process. There's also an option in the WSL config you can specify to limit the amount of memory it can use.
Machines have 64 gig of memory. vmmem uses only 8. That process just jams at 100% and kills it. You can’t terminate it as it’s not actually a process as such. WSL shutdown does not work.
Re:Windows 11 Insider Preview Build
by StableAlkyne on Friday March 07, 2025 @02:02PM
(#43293131)
Never heard of that happening myself, and I've been on a few teams that used it going back to the WSL1 days.
Not saying that it didn't, either. Just that it might not be a widespread issue
Have seen that a few times from different people.