Search code examples
elasticsearchamazon-ec2

How to increase vm.max_map_count?


I'm trying to run Elastic search in an Ubuntu EC2 machine (t2.medium).

But I'm getting the message:

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

How can I increase the vm.max_map_count value?


Solution

  • To make it persistent, you can add this line:

    vm.max_map_count=262144
    

    in your /etc/sysctl.conf and run

    $ sudo sysctl -p
    

    to reload configuration with new value