1. 程式人生 > >安裝排錯 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

安裝排錯 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

china 退出 oop virtual pro 修改 數值 arc 配置

https://blog.csdn.net/cookzrk/article/details/80179006

轉載:https://my.oschina.net/u/2510243/blog/810520

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]

解決方案:

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

切換到root用戶

ulimit -Hn 查看硬限制

vim /etc/security/limits.conf

添加下面設置 hadoop是用戶

hadoop soft nofile 65536
hadoop hard nofile 65536

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

重新 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

安裝排錯 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]