美文网首页
wls2 编译项目出现 oom的解决方案

wls2 编译项目出现 oom的解决方案

作者: ag4kd | 来源:发表于2022-06-24 10:43 被阅读0次
  • 查看运行信息
dmesg | grep memory
image.png
  • 查看内存信息
free -h
image.png
  • 新建 文件.wslconfig 内容如下:
[wsl2]
memory=8GB
swap=8GB
localhostForwarding=true

讲上述文件在用户的根目录下,重启电脑即可解决oom问题。


image.png

相关文章

网友评论

      本文标题:wls2 编译项目出现 oom的解决方案

      本文链接:https://www.haomeiwen.com/subject/qepvvrtx.html