phenomenon
An exception occurred during ES startup
bin/elasticsearch
[1]: max number of threads [3882] for user [esuser] is too low, increase to at least [4096]
Cause Analysis
ES operation has requirements for user threads, the minimum is 4096, some system users default the maximum number of threads does not meet this condition.
- View system resource limits
ulimit -u
Handling method
Adjust the user's maximum number of threads, the modification operation is as follows
- Permanent modification
vim /etc/security/limits.conf
# 设置所有用户的最大并发处理数设置为4096,*代表所有用,也可以直接使用用户名
* soft nproc 4096
* hard nproc 4096
- Temporary modification, invalid after restart
ulimit -u 4096
- Successfully modified