1.內存配置不正確jvm
啓動後,異常退出,日誌打印信息/mnt/log/elasticsearchelasticsearch
initial heap size [1073741824] not equal to maximum heap size [2147483648]; this can cause resize pauses and prevents mlockall from locking the entire heapthis
解決:日誌
/etc/elasticsearch/jvm.options索引
-Xms2g
-Xmx2g內存
修改成一致的it
推薦配置爲系統內存的一半,可是因爲索引的特殊性,不該該超過31G。配置一半 是由於剩下的一半索引也會消耗掉 沒必要擔憂內存浪費。io