ES启动异常:max number of threads [3882] for user [xxx] is too low, increase to at least [4096]

现象

ES启动时出现异常

bin/elasticsearch

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

原因分析

ES运行对用户线程有要求,最少为4096,部分系统用户默认最大线程数不满足该条件。

  • 查看系统资源限制
ulimit -u

处理办法

调整用户最大线程数,修改操作如下

  • 永久修改
vim /etc/security/limits.conf

# 设置所有用户的最大并发处理数设置为4096,*代表所有用,也可以直接使用用户名
* soft nproc 4096
* hard nproc 4096
  • 临时修改,重启后失效
ulimit -u 4096
  • 修改成功 

 

猜你喜欢

转载自blog.csdn.net/lizz861109/article/details/112511105