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

[2021-05-03T11:54:49,018][INFO ][o.e.p.PluginsService     ] [search-node1] loaded plugin [ingest-geoip]
[2021-05-03T11:54:49,018][INFO ][o.e.p.PluginsService     ] [search-node1] loaded plugin [ingest-user-agent]
[2021-05-03T11:54:52,096][INFO ][o.e.x.s.a.s.FileRolesStore] [search-node1] parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]
[2021-05-03T11:54:52,684][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [search-node1] [controller/89] [Main.cc@109] controller (64 bit): Version 6.6.1 (Build a033f1b9679cab) Copyright (c) 2019 Elasticsearch BV
[2021-05-03T11:54:53,296][INFO ][o.e.d.DiscoveryModule    ] [search-node1] using discovery type [zen] and host providers [settings]
[2021-05-03T11:54:53,875][INFO ][o.e.n.Node               ] [search-node1] initialized
[2021-05-03T11:54:53,875][INFO ][o.e.n.Node               ] [search-node1] starting ...
[2021-05-03T11:54:54,067][INFO ][o.e.t.TransportService   ] [search-node1] publish_address {192.168.0.108:9300}, bound_addresses {0.0.0.0:9300}
[2021-05-03T11:54:54,091][INFO ][o.e.b.BootstrapChecks    ] [search-node1] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2021-05-03T11:54:54,115][INFO ][o.e.n.Node               ] [search-node1] stopping ...
[2021-05-03T11:54:54,140][INFO ][o.e.n.Node               ] [search-node1] stopped
[2021-05-03T11:54:54,140][INFO ][o.e.n.Node               ] [search-node1] closing ...
[2021-05-03T11:54:54,154][INFO ][o.e.n.Node               ] [search-node1] closed
[2021-05-03T11:54:54,156][INFO ][o.e.x.m.p.NativeController] [search-node1] Native controller process has stopped - no new native processes can be started

ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least

 

Solution.

Add a line to the end of the /etc/sysctl.conf file
vm.max_map_count=262144
Run /sbin/sysctl -p to take effect immediately

Read More: