1、[2016-11-19T03:22:22,188][WARN ][o.e.b.BootstrapCheck ] [4Ut8v_1] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
更改允许打开的最大文件描述符,修改成功后重新启动生效。
vim /etc/security/limits.conf * soft nofile 65536 * hard nofile 65536
2 、[2016-11-19T03:22:22,188][WARN ][o.e.b.BootstrapCheck ] [4Ut8v_1] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
更改sysctl.conf的配置
vim /etc/sysctl.d/99-sysctl.conf 或
vim /etc/sysctl.conf
增加:vm.max_map_count = 262144
sysctl -p //保存生效
3、ava HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error=’Cannot allocate memory’ (errno=12)
内存过小,可以减少jvm的内存,建议设置成总内存大小的一半
vim /usr/local/elastic/config/jvm.options -Xms512m -Xmx512m jvm.options的配置见:ElasticSearch5.0中Jvm的配置