转载:https://my.oschina.net/u/2510243/blog/810520vim
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]
elasticsearch
解决方案:oop
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]spa
切换到root用户.net
ulimit -Hn 查看硬限制blog
vim /etc/security/limits.conf ip
添加下面设置 hadoop是用户hadoop
hadoop soft nofile 65536
hadoop hard nofile 65536it
退出用户从新登陆,使配置生效ast
从新 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