弹性搜索过程的最大文件描述符太低

2022-09-02 23:24:56

无法解决以下问题:

[2017-10-16T13:54:23,381][WARN ][o.e.b.BootstrapChecks    ] [node-1] max 
file descriptors [65000] for elasticsearch process is too low, increase to 
at least [65536]
[2017-10-16T13:54:23,382][WARN ][o.e.b.BootstrapChecks    ] [node-1] max 
number of threads [1024] for user [appadm01] is too low, increase to at 
least [2048]
[2017-10-16T13:54:23,382][WARN ][o.e.b.BootstrapChecks    ] [node-1] system 
call filters failed to install; check the logs and fix your configuration or 
disable system call filters at your own risk

我执行了sysctl -w fs.file-max=65536,但我得到了同样的东西。


答案 1

对于那些使用docker运行弹性搜索的人,您可以通过如下所示的命令设置ulimit。docker run

docker run --ulimit nofile=65536:65536 -p 9200:9200 --name elastic-search docker.elastic.co/elasticsearch/elasticsearch:6.4.2

希望这将有助于泊坞窗用户


答案 2

试试这个:(从2-3个不同的来源获得)

加入$ES_HOME/config/elasticsearch.yml

network.host: 0.0.0.0
http.port: 9200
transport.host: localhost
transport.tcp.port: 9300

如果其本地开发设置,如果可能,还要使用较少的内存选项:

添加/修改$ES_HOME/config/jvm.options

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms512m
-Xmx512m

推荐