Skip to content

Instantly share code, notes, and snippets.

@radislaw
Created August 23, 2017 00:07
Show Gist options
  • Select an option

  • Save radislaw/aff756e8896825e5a2ff09d275ca64a9 to your computer and use it in GitHub Desktop.

Select an option

Save radislaw/aff756e8896825e5a2ff09d275ca64a9 to your computer and use it in GitHub Desktop.
Increasing memory in elasicsearch < 5
Edit the following files to modify memory and file number limits. These instructions assume Ubuntu 10.04, may work on later versions and other distributions/OSes. (Edit: This works for Ubuntu 14.04 as well.)
/etc/security/limits.conf:
elasticsearch - nofile 65535
elasticsearch - memlock unlimited
--------------------------------------------------------------------------
/etc/default/elasticsearch (on CentOS/RH: /etc/sysconfig/elasticsearch ):
ES_HEAP_SIZE=512m
MAX_OPEN_FILES=65535
MAX_LOCKED_MEMORY=unlimited
----------------------------------------------------------------------------
/etc/elasticsearch/elasticsearch.yml:
bootstrap.mlockall: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment