计算机知识分享网

【es】elascticsearch部署时调整Linux下的资源空间大小

当使用默认的Linux操作系统启动es时,可能报错如下:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
增加资源分配,资源分配不够进程会自动关闭服务
vim /etc/security/limits.conf
在最后面增加如下内容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
然后退出当前账号,重新连接ssh,查看即可:
[root@localhost ~]# ulimit  -H -n
131072

#Es