Windows subsystem WSL virtual memory usage is too large.
Win11 is currently in use.
1 Press the Windows + R key, enter %UserProfile%, and run to enter the user folder
2 Create the. Wslconfig file and edit it in Notepad
3 Fill in the following content and save it. Memory is the upper limit of system memory. Here, I limit the maximum 16GB, which can be set according to the configuration of your own computer
4 Enter WLS –shutdown.
5 Restart the WLS subsystem.
The current user folder is entered by default. Create a configuration file.
After the save