Failed to start elasticsearch service

Failed to start elasticsearch service

I am trying to start elasticsearch on windows.
ES 5.0.0,
JDK 1.8.0.66,
Windows 10
Service is installed properly but failed to start.
D:\Softwares\Elastic_Project\elasticsearch-5.0.0\binelasticsearch-service install
C:\Program Files\Java\jdk1.8.0_66
Installing service : … Read more

vm.max_map_count is too low

vm.max_map_count is too low

I am moving from elasticsearch 2.x to 5.x and facing this problem while starting up.
[2017-02-28T14:38:24,490][INFO ][o.e.b.BootstrapChecks ] [node1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks… Read more