Created
August 23, 2017 00:07
-
-
Save radislaw/aff756e8896825e5a2ff09d275ca64a9 to your computer and use it in GitHub Desktop.
Increasing memory in elasicsearch < 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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