Elasticsearch is a distributed, open source search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured. After installing Elasticsearch the application failed to start with a bootstrap error.
Problem
ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [username] is too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Resolution
The resolution was to modify three files.
vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
vim /etc/security/limits.d/90-nproc.conf
#* soft nproc 1024
* soft nproc 2048
vim /etc/sysctl.conf
# Added for Elasticsearch
vm.max_map_count = 262144
sysctl -p
After logging off, logging back on, the user account successfully started Elasticsearch.
Source
- http://www.cnblogs.com/woxpp/p/6061073.html
- https://www.elastic.co/what-is/elasticsearch