LoginSignup
0
0

More than 1 year has passed since last update.

Vmmemによるメモリ枯渇への対処備忘録

Posted at

背景

WSL2上のDockerコンテナで環境構築している時に、マシンがやたらと重い。
仕事用のマシンのメモリが8GBしかないのが原因かと思ったが、タスクマネージャーを見るとvmmemが悪さしてそう。

対処法

暫定的に~/.wslconfigでメモリ制限を4GBに設定してみた。

結果

vmmemは最大でも4GBしか使わなくなった。
ビルドも問題なく行えた。

参考文献

https://note.com/ym202110/n/nfa9337b0beea
https://qiita.com/yoichiwo7/items/e3e13b6fe2f32c4c6120

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0