Last active
May 5, 2020 08:21
-
-
Save sanjid133/c473401d4a816604607f4b4a450e728e to your computer and use it in GitHub Desktop.
Increase file descriptor limit for elasticsearch
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
# check file descriptor | |
$ ulimit -n | |
1024 | |
$ nano /etc/security/limits.conf | |
* soft nofile 64000 | |
* hard nofile 64000 | |
root soft nofile 64000 | |
root hard nofile 64000 | |
$ nano /etc/pam.d/common-session | |
session required pam_limits.so | |
$ nano /etc/pam.d/common-session-noninteractive | |
session required pam_limits.so | |
$ ulimit -n | |
unlimited | |
## Set ES Heap Size | |
$ nano /etc/environment | |
ES_HEAP_SIZE="512m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment