一、max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
每个进程最大同时打开文件数量太小,可使用以下命令进行查看
ulimit -Hn
ulimit -Sn
解决方法:
修改/etc/security/limits.conf文件,在末尾加上如下两行
* soft nofile 65536
* hard nofile 65536
在切换用户重新登录后,可使配置修改生效。
二、max number of threads [1868] for user [es] is too low, increase to at least [4096]
使用以下命令可以查看,我这边的环境应该就是1868,改为4096就行了,查看命令如下·
ulimit -Hu
ulimit -Su
解决方法:
修改/etc/security/limits.conf文件,在末尾加上如下两行
* soft nproc 4096
* hard nproc 4096
同样,
在切换用户重新登录后,可使配置修改生效。