当前elasticsearch版本8.11.4,报错内容如下:
1 2 3 |
[ERROR][o.e.b.Elasticsearch ] [ceph1] node validation exception [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. For more information see [https://www.elastic.co/guide/en/elasticsearch/reference/8.11/bootstrap-checks.html] bootstrap check failure [1] of [1]: initial heap size [2147483648] not equal to maximum heap size [4294967296]; this can cause resize pauses and prevents memory locking from locking the entire heap; for more information see [https://www.elastic.co/guide/en/elasticsearch/reference/8.11/_heap_size_check.html] |
这是因为jvm的参数原因,把jvm的参数设置为相等,我这里基于rpm包安装的,所以修改以下配置。
1 |
vi /etc/elasticsearch/jvm.options |
1 2 |
-Xms4g -Xmx4g |
注意:Xms和Xmx值必须相同,建议设置为物理内存的一半,通常不超过32g。
原文链接:Elasticsearch报错initial heap size,转载请注明来源!