elasticsearch启动常见问题汇总

一、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

同样,

在切换用户重新登录后,可使配置修改生效。

三、max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

修改/etc/sysctl.conf文件

vi /etc/sysctl.conf

在末尾加上一行(若已存在则修改数值)

vm.max_map_count=262144

让修改生效

sysctl -p
发布了48 篇原创文章 · 获赞 52 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/y506798278/article/details/94312445