天天看點

elasticsearch啟動出現的系統配置要求問題

問題出現環境,OS版本:CentOS-6

ES版本:elasticsearch-7.2

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

  每個程序最大同時打開檔案數太小,可通過下面2個指令檢視目前數量

ulimit -Hn

ulimit -Sn

  修改/etc/security/limits.conf檔案,增加配置,使用者退出後重新登入生效

  • soft nofile 65536
  • hard nofile 65536

2、max number of threads [3818] for user [es] is too low, increase to at least [4096]

  問題同上,最大線程個數太低。修改配置檔案/etc/security/limits.conf(和問題1是一個檔案),增加配置

  • soft nproc 4096
  • hard nproc 4096

     

修改檔案 /etc/security/limits.d

  • soft nproc 1024

    修改為

  • soft nproc 4096

可通過指令檢視

ulimit -Hu

ulimit -Su

3、max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

修改/etc/sysctl.conf檔案,增加配置vm.max_map_count=262144

繼續閱讀