bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
时间: 2023-10-29 09:22:32 浏览: 160
elasticsearch启动后自动关闭:max virtual memory areas vm.max_map_count [65530] is too low, increase to at…
bootstrap checks failed : max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 这个错误是由于Elasticsearch启动时对系统进行了一系列的检查,而其中的一个检查是检查虚拟内存区域的最大数量(vm.max_map_count)是否足够高。在这个错误中,虚拟内存区域的最大数量被检测到太低了,需要至少增加到262144。
有两种解决方案可以解决这个问题。第一种是临时修改虚拟内存区域的最大数量,可以使用以下命令来修改:
```
sysctl -w vm.max_map_count=262144
```
第二种是永久修改虚拟内存区域的最大数量,可以使用以下命令来修改/etc/sysctl.conf文件:
```
echo vm.max_map_count=262144 >> /etc/sysctl.conf
```
然后使用以下命令来使修改生效:
```
sysctl -p
```
另外,如果你使用Docker运行Elasticsearch,可以在Docker run命令中添加以下参数来增加虚拟内存区域的最大数量:
```
docker run -d -p 9200:9200 -p 9300:9300 --name <自定义容器名字> -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.type=single-node" --sysctl vm.max_map_count=262144 <容器ID>
```
这样就能够解决bootstrap checks failed : max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]这个错误了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too l](https://blog.csdn.net/qq_42704442/article/details/128000463)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [解决Docker启动Elasticsearch7.x报错的问题](https://download.csdn.net/download/weixin_38719475/14048015)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]](https://blog.csdn.net/jcmj123456/article/details/120477158)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文