当前位置:网站首页>Vmmem process (WSL2) consumes huge amount of memory
Vmmem process (WSL2) consumes huge amount of memory
2022-08-04 06:43:00 【Louzen】
[Reprint]: blogger Liu Wenzhuang, https://blog.csdn.net/u010730126/article/details/117302375
Problem Scenario
When using Docker in WSL2, it may cause the Vmmem process to consume all the memory, causing the machine to freeze, and the process cannot be terminated through the task manager or taskkill.
Projects
- Create a new file .wslconfig in the user directory, and add the following configuration to limit its memory usage:
[wsl2]memory=6GBswap=0localhostForwarding=true
- The configuration of memory is based on the memory configuration of your own machine. For example, it can be configured to 1/3 or 1/4 of the machine memory to ensure smooth use of other applications.More configurations can be found in the release notes of WSL
- Restart WSL2: Open Services (by Win + R, run services.msc), find the LxssManager service, and restart it
边栏推荐
猜你喜欢
随机推荐
【独立游戏体验计划】学习记录
strlen 转义字符
tmux concept and usage
【HIT-SC-MEMO6】哈工大2022软件构造 复习笔记6
指针的运算【C语言】
Shell基础
淘宝分布式文件系统存储引擎(一)
基于Webrtc和Janus的多人视频会议系统开发5 - 发布媒体流到Janus服务器
罗斯50分
IEEE802.X protocol suite
webrtc代码解读一:音频数据的接收解码播放过程
LeetCode_22_Apr_2nd_Week
集合---ArrayList的底层
LeetCode_Nov_4th_Week
[Daily office][shell] Common code snippets
FAREWARE ADDRESS
使用JS在浏览器中打印菱形
const int * a 与 int * const a 的定义与区别
20170729
The usefulness of bind() system call