一、max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
Small number of simultaneously open files per process maximum, can be viewed using the following command
ulimit -Hn
ulimit -Sn
Solution:
/Etc/security/limits.conf modify the file, add the following two lines at the end of
* soft nofile 65536
* hard nofile 65536
After switching users to log in again, make configuration changes to take effect.
二、max number of threads [1868] for user [es] is too low, increase to at least [4096]
Use the following command to view, my side of the environment should be the 1868, 4096 changed the line to see command is as follows *
ulimit -Hu
ulimit -Su
Solution:
/Etc/security/limits.conf modify the file, add the following two lines at the end of
* soft nproc 4096
* hard nproc 4096
same,
After switching users to log in again, make configuration changes to take effect.
三、max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Modify /etc/sysctl.conf file
vi /etc/sysctl.conf
Adding at the end of a line (if present value is modified)
vm.max_map_count=262144
Changes to take effect
sysctl -p