Elasticsearch5.1.1 啓動報錯

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [hadoop] 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]
 vim

解決方案:elasticsearch

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]oop

切換到root用戶ip

 ulimit -Hn  查看硬限制hadoop

vim /etc/security/limits.conf it

添加下面設置 hadoop是用戶ast

hadoop soft nofile 65536
hadoop hard nofile 65536thread

退出用戶從新登陸,使配置生效登錄

從新 ulimit -Hn  查看硬限制 會發現數值有4096改爲65535配置

vim /etc/security/limits.d/90-nproc.conf 

找到以下內容:

soft nproc 1024

修改成

soft nproc 2048

vi /etc/sysctl.conf

添加下面配置:

vm.max_map_count=655360

並執行命令:

sysctl -p

相關文章
相關標籤/搜索