环境变量:
export ES_HEAP_SIZE=2g
File Descriptors:
cat /proc/sys/fs/file-max
/etc/security/limits.conf
* soft nofile 4096
* hard nofile 4096
/etc/pam.d/common-session*
ADD:session required pam_limits.so
Virtual memory
sysctl-w vm.max_map_count=262144
To set this value permanently, update the vm.max_map_count
setting in /etc/sysctl.conf
Memory Settings
adding this line to theconfig/elasticsearch.yml
bootstrap.mlockall:true
/etc/security/limits.conf
* soft memlock unlimited
* hard memlock unlimited
启动:
bin/elasticsearch -Des.max-open-files=true