Java memory error when start elastic search
Add some space for swap area
free -m
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo sysctl -w fs.file-max=2097152
sudo sysctl -w vm.max_map_count=67108864
REF:
https://github.com/docker-library/elasticsearch/issues/131
Thank you.