当前位置:网站首页>Vmmem 进程(WSL2)消耗内存巨大
Vmmem 进程(WSL2)消耗内存巨大
2022-08-04 05:31:00 【Louzen】
【转载】:刘文壮博主,https://blog.csdn.net/u010730126/article/details/117302375
问题场景
在 WSL2 中使用 Docker 时,可能会造成 Vmmem 进程消耗掉全部的内存,导致机器卡顿,且通过任务管理器或者通过 taskkill 都无法终止此进程。
方案
- 在用户目录下新建文件 .wslconfig,增加下面的配置,限制其内存占用:
[wsl2]
memory=6GB
swap=0
localhostForwarding=true
- memory 的配置根据自己机器的内存配置,比如可以配置成机器内存的 1 / 3 或 1 / 4,以保证其他应用流畅使用。更多配置可查看 WSL 的 发行说明
- 重启 WSL2:打开 服务(可通过 Win + R,运行 services.msc),找到 LxssManager 服务,将其重启
边栏推荐
- TensorRT 5 初步认识
- 通用解决端口占用问题
- MNIST Handwritten Digit Recognition - From Perceptrons to Convolutional Neural Networks
- LeetCode_Nov_5th_Week
- Copy攻城狮的年度之“战”|回顾2020
- The second official example analysis of the MOOSE platform - about creating a Kernel and solving the convection-diffusion equation
- 如何用Pygame制作简单的贪吃蛇游戏
- 第一章 绪论
- 安装pyspider后运行pyspider all后遇到的问题
- 【五一专属】阿里云ECS大测评#五一专属|向所有热爱分享的“技术劳动者”致敬#
猜你喜欢
MNIST Handwritten Digit Recognition - Building a Perceptron from Zero for Two-Classification
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
安装pyspider后运行pyspider all后遇到的问题
MNIST手写数字识别 —— 从二分类到十分类
MOOSE平台使用入门攻略——如何运行官方教程的例子
代码庆端午--粽你心意
LeetCode_Dec_3rd_Week
第一章 绪论
MNIST手写数字识别 —— Lenet-5首个商用级别卷积神经网络
Pytest common plug-in
随机推荐
bind()系统调用的用处
MOOSE平台使用入门攻略——如何运行官方教程的例子
机器学习——分类问题对于文字标签的处理(特征工程)
[日常办公][shell]常用代码段
SFTP的用法
sbl_init.asm-适合在编辑模式下看
arm学习-1-开发板
Rules.make-适合在编辑模式下看
(导航页)OpenStack-M版-双节点手工搭建-附B站视频
AWS使用EC2降低DeepRacer的训练成本:DeepRacer-for-cloud的实践操作
target has libraries with conflicting names: libcrypto.a and libssl.a.
makefile基础学习
彻底删除MySQL教程
如何用Pygame制作简单的贪吃蛇游戏
LeetCode_22_Apr_4th_Week
arm交叉编译
The second official example analysis of the MOOSE platform - about creating a Kernel and solving the convection-diffusion equation
[Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes
Pytest common plug-in
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation