1. 程式人生 > >[ELK] ERROR: [2] bootstrap checks failed報錯解決方法

[ELK] ERROR: [2] bootstrap checks failed報錯解決方法

ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
 

【1】

修改/etc/security/limits.conf在最後新增

* soft nofile 65536
* hard nofile 131072

【2】

解決辦法:
1、切換到root使用者修改配置sysctl.conf

vi /etc/sysctl.conf 
  • 1

新增下面配置:

vm.max_map_count=655360
  • 1

並執行命令:

sysctl -p
  • 1

然後,重新啟動elasticsearch,即可啟動成功。

啟動logstash報錯    Unrecognized VM option 'UseParNewGC' 

解決措施:刪去config資料夾下的jvm.options配置檔案中的-XX:UseParNewGC