当前位置:网站首页 > 更多 > 编程开发 > 正文

[异常记录] 记 Docker 运行 Logstash out of memory 问题

作者:CC下载站 日期:2022-08-06 00:00:00 浏览:72 分类:编程开发

最近在 Docker 容器上搭建 Zookeeper+Kafka+Logstash+Elasticsearch+Kibana 日志分析系统,在运行 Logstash 和 Elasticsearch 时遇到了如下错误:

library initialization failed - unable to allocate file descriptor table - out of memorylibrary
initialization failed - unable to allocate file descriptor table - out of memory

[异常记录] 记 Docker 运行 Logstash out of memory 问题

在这里记录下解决方案。

解决方案

通过重写 Docker 的 ExecStart 的参数解决

sudo systemctl edit docker

进入后,添加或者修改对应参数

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --default-ulimit nofile=65536:65536 -H fd://

最后重启 Docker

sudo systemctl daemon-reload
sudo systemctl restart docker

参考:https://stackoverflow.com/questions/68776387/docker-library-initialization-failed-unable-to-allocate-file-descriptor-tabl

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯