6.1 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
6.2 max number of threads [3795] for user [esuser] is too low, increase to at least [4096]
6.3 max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
前两个需要切换至root用户修改/etc/security/limits.conf,增加如下配置,再切换es用户重启服务。
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
第三个需要切换至root用户修改/etc/sysctl.conf,增加如下配置,然后执行 sysctl -p 刷新,再切换es用户重启服务。
vm.max_map_count=262145