实际上是依赖的WSL2占用的内存,在当前用户目录下新建.wslconfig文件:

[wsl2]
memory=2GB  # Limits VM memory in WSL 2GB, also can be set to other values
swap=0
localhostForwarding=true
processors=2 # Makes the WSL 2 VM use two virtual processors, also can be set to other values

根据自己电脑内存配置情况限制Vmmen大小,这里设置的是2G,重启即可。

相关文章:

  • 2022-01-24
  • 2021-12-14
  • 2021-09-06
  • 2021-07-30
  • 2022-12-23
  • 2022-01-11
  • 2021-06-13
  • 2021-08-18
猜你喜欢
  • 2021-06-03
  • 2021-08-10
  • 2021-09-18
  • 2021-07-05
  • 2021-06-27
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案