Error Messages:
ERROR: [1] bootstrap checks failed [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535] [2]: max number of threads [3795] for user [es] 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]
Problem Cause.
es higher versions of resource requirements, linux system default configuration can not meet its requirements, so it needs to be configured separately
Solution.
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
Modify the vi /etc/security/limits.conf file and add the configuration
* hard nofile 65535 # *can be es start user
* soft nofile 65535
[2]: max number of threads [3795] for user [es] is too low, increase to at least [4096]
Modify the vi /etc/security/limits.conf file and add the configuration
es - nproc 4096 # es is my start user
After the above two configuration items are changed, ES start the user and login again will take effect;
[3]: max virtual memory areas vm. max_map_count [65530] is too low, increase to at least [262144]
Modify /etc/sysctl.config file, add the following configuration
vi /etc/sysctl.conf
vm.max_map_count=262144
Execute the order with immediate effect
/sbin/sysctl -p
vm.max_map_count = 262144
Start successful
Read More:
- [Solved] ElasticSearch startup error: bootstrap checks failed
- How to Solve elasticsearch-7.15.1 operation errors
- Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
- [Solved] Elasticsearch.service failed after enable elasticsearch security features
- How to Solve Redis Cluster Build Error
- [Solved] Elasticsearch-7.2.1 startup error: ERROR: [1] bootstrap checks failed
- How to Solve elasticsearch root user start Error
- [Solved] Nacos Cluster startup error: error=‘Cannot allocate memory‘ (errno=12)
- [Solved] Elasticsearch error: cannot downgrade a node from version [7.xx.x] to version [7.xx.x]
- [Solved] redis Error: Can‘t save in background fork Cannot allocate memory
- [Solved] docker Commands Execute Error: Segmentation fault
- [Solved] Elasticsearch Error: received plaintext http traffic on an https channel, closing connection…
- Mongodb Crash Error: Too many open files [How to Solve]
- [Solved] Error(22) WARNING: IPv4 forwarding is disabled. Networking will not work.
- [Solved] NPM run build package error: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] Redis startup error Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- How to Solve elasticSearch8.1.2 Install Error in Win10
- [Solved] Rsync synchronization Error: @ERROR: Unknown module xxx
- Elasticsearch 6.2.3 version executes aggregation error Fielddata is disabled on text fields by default
- [Elasticsearch Exception]Found interface org.elasticsearch.common.bytes.BytesReference