当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Question 1000: Input two integers a and b, calculate the sum of a+b, this question is multiple sets of test data
arm learning-1-development board
Shell基础
LeetCode_Nov_2nd_Week
[English learning][sentence] good sentence
Object. RequireNonNull method
动态内存管理-C语言
JVM intro
C语言数组的深度分析
【C语言】数组名是什么
JUC并发容器——ConcurrentLinkedQueue
第三章 标准单元库(上)
实现高并发服务器(二)
MVC custom configuration
LeetCode_Nov_2nd_Week
指针运算相关面试题详解【C语言】
Arduino之ESP8266编程学习总结体会
Usage of SFTP
CAS无锁队列的实现
跑跑飞弹室外跑步AR游戏代码方案设计









