Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

512M 的VPS跑docker不起来 #67

Open
yjps opened this issue Feb 11, 2023 · 1 comment
Open

512M 的VPS跑docker不起来 #67

yjps opened this issue Feb 11, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@yjps
Copy link

yjps commented Feb 11, 2023

512M docker,其它服务都关了,也跑不起来,怎么启动时需要那么大内存啊
image

然后我使用二进制文件,成功运行。

@yjps yjps changed the title 512M 的VPS跑不去来 512M 的VPS跑不起来 Feb 11, 2023
@ihciah
Copy link
Owner

ihciah commented Feb 11, 2023

这个问题并不是内存不够,而是 lock mem limit 导致的。我们为了极致性能默认启用了 io_uring,使用 io_uring 需要分配一块与内核共享的内存,它需要被 lock,而默认情况下部分发行版会有一个较小的限制。

可以参考这里解决:

  1. https://github.com/bytedance/monoio/blob/master/docs/zh/memlock.md
  2. suggest modifying memlock unlimited  #37
  3. 如果实在没能解决,设置环境变量 MONOIO_FORCE_LEGACY_DRIVER=1 可以禁用 io_uring

@ihciah ihciah added the documentation Improvements or additions to documentation label Feb 12, 2023
@yjps yjps changed the title 512M 的VPS跑不起来 512M 的VPS跑docker不起来 Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants