cannot allocate memory error

前提是你 提交于 2019-12-06 16:27:46

For anyone else who runs into this problem, it was a related recent issue in the golang issue

For all those affected, temporary workaround on Linux until it is fixed properly can be one of following:

  1. enable unconditional overcommit: sysctl -w vm.overcommit_memory=1
  2. enable unconditional overcommit: sysctl -w vm.overcommit_memory=1 add swap to your host, with sysctl -w vm.swappiness=1 it will almost never going to be used, but it participates in calculations where Linux kernel decides to whether it can afford to satisfy allocation or not when default overcommit_memory=0 is in use
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!