启动ES报错:max virtual memory areas vm.max_map_count


1、报错日志

ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/blog-app.log

2、解决方案

在宿主机修改sysctl.conf配置文件

vim /etc/sysctl.conf

将虚拟内存设置为:

# 虚拟内存大小
vm.max_map_count=655360

虚拟内存不够

3、注意

如果是在docker容器内运行的elasticsearch,需要重启docker容器

systemctl restart docker.service

4、最后效果

finall


分类:Java
标签:
文章目录