Cannot start elasticsearch 5.x


I am running elk stack in docker environment running on coreos but I cannot stat the elasticsearch because vm.max_map_count needs value 2147483648 but the default is 65530.

I have tried creating a config file with that value but I get the following error:

-- Unit systemd-sysctl.service has begun starting up.
Jul 17 20:12:26 systemd-sysctl[741]: Couldn't write '2147483648' to 'vm/max_map_count', ignoring: Invalid argument
Jul 17 20:12:26 systemd[1]: systemd-sysctl.service: Main process exited, code=exited, status=1/FAILURE
Jul 17 20:12:26 sudo[717]: pam_unix(sudo:session): session closed for user root
Jul 17 20:12:26 systemd[1]: Failed to start Apply Kernel Variables.
-- Subject: Unit systemd-sysctl.service has failed
-- Defined-By: systemd
-- Support:

I know this is not exactly elasticsearch related but maybe there is someone who came up with a solution for this issue.

Thanks in advance

Please show how you have configured the ES configuration, there is something wrong.

While vm.max_map_count is ok with 65530, ES specific value should be 2^18 (262144), not 2^31 (2147483648). 2^31 is impossible to set by sysctl because this number does not fit into a positive integer value, the maximum integer is 2^31-1 and should not be tried for vm.max_map_count.

elasticsearch config is almost the default one: cluster
http.port: 9200
discovery.zen.minimum_master_nodes: 1

I mean the startup configuration where kernel and Java configuration is set, not the Elasticsearch config file in the config directory.

Hi jprante,

since I am facing the same problem. Where can i find the kernel and Java configuration is set. I am using Centos.

Many Thanks,
Tomer Zaks

When I open my system log I get:

I have elastic Search 5.2 installed