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

问题描述 投票:2回答:3

无法解决这些问题:

[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,但我得到了相同的东西。

java linux elasticsearch
3个回答
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

0
投票

只需将/etc/security/limits.conf内容更新到下面

elasticsearch   soft    nofile          65536
elasticsearch   hard    nofile          65536
elasticsearch   memlock unlimited

并删除/etc/security/limits.d/nproc.conf的内容

不要忘记重新登录shell以获得限制。


-1
投票

你读过that page了吗?

它说:

在启动Elasticsearch之前以root身份设置ulimit -n 65536,或在/etc/security/limits.conf中将nofile设置为65536。

© www.soinside.com 2019 - 2024. All rights reserved.