elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase to at

[2018-09-17T15:36:33,379][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded module [lang-mustache]
[2018-09-17T15:36:33,379][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded module [lang-painless]
[2018-09-17T15:36:33,379][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded module [parent-join]
[2018-09-17T15:36:33,379][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded module [percolator]
[2018-09-17T15:36:33,379][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded module [reindex]
[2018-09-17T15:36:33,379][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded module [transport-netty3]
[2018-09-17T15:36:33,379][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded module [transport-netty4]
[2018-09-17T15:36:33,380][INFO ][o.e.p.PluginsService     ] [eRhUmHs] loaded plugin [analysis-ik]
[2018-09-17T15:36:34,375][INFO ][o.e.d.DiscoveryModule    ] [eRhUmHs] using discovery type [zen]
[2018-09-17T15:36:34,892][INFO ][o.e.n.Node               ] initialized
[2018-09-17T15:36:34,892][INFO ][o.e.n.Node               ] [eRhUmHs] starting ...
[2018-09-17T15:36:35,036][INFO ][o.e.t.TransportService   ] [eRhUmHs] publish_address {192.168.0.244:9300}, bound_addresses {192.168.0.244:9300}
[2018-09-17T15:36:35,044][INFO ][o.e.b.BootstrapChecks    ] [eRhUmHs] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2018-09-17T15:36:35,046][ERROR][o.e.b.Bootstrap          ] [eRhUmHs] node validation exception
[2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2018-09-17T15:36:35,048][INFO ][o.e.n.Node               ] [eRhUmHs] stopping ...
[2018-09-17T15:36:35,065][INFO ][o.e.n.Node               ] [eRhUmHs] stopped
[2018-09-17T15:36:35,066][INFO ][o.e.n.Node               ] [eRhUmHs] closing ...
[2018-09-17T15:36:35,078][INFO ][o.e.n.Node               ] [eRhUmHs] closed
 

解决方法:

1、切换到root用户修改配置sysctl.conf

vi /etc/sysctl.conf 
  • 1

添加下面配置:

vm.max_map_count=655360
  • 1

并执行命令:

sysctl -p
  • 1

然后,重新启动elasticsearch,即可启动成功。

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

解决:修改切换到root用户修改配置limits.conf 添加下面两行

命令:vi /etc/security/limits.conf

*        hard    nofile           65536
*        soft    nofile           65536
切换到es的用户。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小努蛋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值