Skip to content

Instantly share code, notes, and snippets.

@sanjid133
Last active May 5, 2020 08:21
Show Gist options
  • Save sanjid133/c473401d4a816604607f4b4a450e728e to your computer and use it in GitHub Desktop.
Save sanjid133/c473401d4a816604607f4b4a450e728e to your computer and use it in GitHub Desktop.
Increase file descriptor limit for elasticsearch
# 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