elasticsearch启动错误解决

本文详细介绍了如何解决Elasticsearch在启动过程中常见的四个问题,包括调整最大文件描述符数量、用户最大线程数、最大虚拟内存区域,以及禁用系统调用过滤器。通过修改相关配置文件,确保Elasticsearch能够顺利启动并运行。

es启动默认不能使用root用户,所以需要新创建一个用户来启动。

启动时可能出现的问题:

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

[2]: max number of threads [1024] for user [esuser1] is too low, increase to at least [4096]

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

[4]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

1.修改最大文件描述符数量为65536:

编辑文件:/etc/security/limits.conf

添加:

*                soft    nofile          65536

*                hard    nofile          65536

2.修改用户最大线程数为4096

编辑文件:/etc/security/limits.d/90-nproc.conf

*          soft    nproc     1026

修改为:

*          soft    nproc     4096

3.修改最大虚拟内存区域为262144

修改文件:/etc/sysctl.conf

添加

vm.max_map_count = 262144

4.在elasticsearch.yml文件中的memory栏添加

bootstrap.memory_lock: false

bootstrap.system_call_filter: false

 

转载于:https://www.cnblogs.com/CLAYJJ/p/10195451.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值