ElasticSearch安装报错整理-threads[4096]

实验环境

  • CentOS7
  • elasticsearch-6.2.4

具体错误

[1]: max number of threads [3802] for user [elasticsearch] is too low, increase to at least [4096]

通过ulimit -a命令查看用户进程数限制。

ElasticSearch安装报错整理-threads[4096]_第1张图片

发现当前最大用户进程数被限制为3802,而ElasticSearch要求的最小进程数为4096,需要调大概值。

编辑/etc/security/limit.d/20-nproc.conf配置文件,改为如下配置。

*          soft    nproc     4096
*          hard    nproc     4096
root       soft    nproc     unlimited
elasticsearch soft nofile    65536
elasticsearch hard nofile    65536

ElasticSearch安装报错整理-threads[4096]_第2张图片

再次启动./elasticsearch就没有这个错误了。


参考文章:
1. https://elasticsearch.cn/question/3915

你可能感兴趣的:(搜索,elasticsearch)