今天在运行ElasticSearch集群的时候,发现报了下面的错误,

{"type": "deprecation", "timestamp": "2022-01-26T07:58:54,866Z", "level": "WARN", "component": "o.e.d.c.s.Settings", "cluster.name": "my-es", "node.name": "es-master-3", "message": "[discovery.zen.ping.unicast.hosts] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version." }
{"type": "deprecation", "timestamp": "2022-01-26T07:58:54,882Z", "level": "WARN", "component": "o.e.d.c.s.Settings", "cluster.name": "my-es", "node.name": "es-master-3", "message": "[discovery.zen.minimum_master_nodes] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version." }
{"type": "server", "timestamp": "2022-01-26T07:59:05,217Z", "level": "INFO", "component": "o.e.x.s.a.s.FileRolesStore", "cluster.name": "my-es", "node.name": "es-master-3", "message": "parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]" }
{"type": "server", "timestamp": "2022-01-26T07:59:08,561Z", "level": "INFO", "component": "o.e.x.m.p.l.CppLogMessageHandler", "cluster.name": "my-es", "node.name": "es-master-3", "message": "[controller/87] [Main.cc@110] controller (64 bit): Version 7.6.2 (Build e06ef9d86d5332) Copyright (c) 2020 Elasticsearch BV" }
{"type": "server", "timestamp": "2022-01-26T07:59:13,427Z", "level": "DEBUG", "component": "o.e.a.ActionModule", "cluster.name": "my-es", "node.name": "es-master-3", "message": "Using REST wrapper from plugin org.elasticsearch.xpack.security.Security" }
{"type": "server", "timestamp": "2022-01-26T07:59:15,164Z", "level": "INFO", "component": "o.e.d.DiscoveryModule", "cluster.name": "my-es", "node.name": "es-master-3", "message": "using discovery type [zen] and seed hosts providers [settings]" }
{"type": "server", "timestamp": "2022-01-26T07:59:22,616Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "my-es", "node.name": "es-master-3", "message": "initialized" }
{"type": "server", "timestamp": "2022-01-26T07:59:22,617Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "my-es", "node.name": "es-master-3", "message": "starting ..." }
{"type": "server", "timestamp": "2022-01-26T07:59:24,821Z", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "my-es", "node.name": "es-master-3", "message": "publish_address {172.18.12.23:9303}, bound_addresses {[::]:9303}" }
{"type": "server", "timestamp": "2022-01-26T07:59:26,236Z", "level": "INFO", "component": "o.e.b.BootstrapChecks", "cluster.name": "my-es", "node.name": "es-master-3", "message": "bound or publishing to a non-loopback address, enforcing bootstrap checks" }
ERROR: [1] bootstrap checks failed
[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/my-es.log
{"type": "server", "timestamp": "2022-01-26T07:59:26,277Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "my-es", "node.name": "es-master-3", "message": "stopping ..." }
{"type": "server", "timestamp": "2022-01-26T07:59:26,327Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "my-es", "node.name": "es-master-3", "message": "stopped" }
{"type": "server", "timestamp": "2022-01-26T07:59:26,328Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "my-es", "node.name": "es-master-3", "message": "closing ..." }
{"type": "server", "timestamp": "2022-01-26T07:59:26,435Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "my-es", "node.name": "es-master-3", "message": "closed" }
{"type": "server", "timestamp": "2022-01-26T07:59:26,438Z", "level": "INFO", "component": "o.e.x.m.p.NativeController", "cluster.name": "my-es", "node.name": "es-master-3", "message": "Native controller process has stopped - no new native processes can be started" }

大致看了一下,是因为ElasticSearch运行的时候最小内存消耗要达到262144,所以,如果是在自己的虚拟机运行,可以临时调整vm.max_map_count的大小,max_map_count文件包含限制一个进程可以拥有的VMA(虚拟内存区域)的数量,临时调整的语句如下:
sysctl -w vm.max_map_count=262144
调整之后再运行es集群就不会有问题了。
如果想永久修改vm.max_map_count的大小,则可以使用如下命令:
echo vm.max_map_count=262144>> /etc/sysctl.conf sysctl -p

ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low相关推荐

  1. Docker CI: 安装 SonarQube 异常 max virtual memory areas vm.max_map_count [65530] is too low

    Docker CI: 安装 SonarQube 异常 max virtual memory areas vm.max_map_count [65530] is too low 一.问题 # docke ...

  2. wsl 模式 max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    目录 问题描述 解决方法 wsl 模式. 问题描述 windows docker 运行elasticsearch 直接就停止了. docker run --name es01 -p 9200:9200 ...

  3. Ubuntu elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase to at le

    具体错误信息如下: jiankunking@ubuntu:~/software/elasticsearch$ ./bin/elasticsearch [2017-03-23T18:14:05,880] ...

  4. [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    ubuntu系统下执行如下命令报错: sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -e ES_MIN_MEM=128m -e ES_M ...

  5. es max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

    max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] /etc ...

  6. windows的max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    场景 windows使用WLS2作为docker的虚拟子系统,然后启动docker的elasticsearch的集群时出现max virtual memory areas vm.max_map_cou ...

  7. 安装es报错: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    启动es时报错max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 解 ...

  8. max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 安装ELK时报

    一.问题背景 当我在K8S的容器中尝试去安装ELK软件过程中,遇到了这个报错:"max virtual memory areas vm.max_map_count [65530] is to ...

  9. Docker Desktop 解决运行elasticsearch时出现的max virtual memory areas vm.max_map_count [65530] is too low异常

    问题描述 Docker Desktop 容器运行elasticsearch提示: max virtual memory areas vm.max_map_count [65530] is too lo ...

最新文章

  1. 青蛙 mysql_青蛙学Linux—MySQL常用命令(二)
  2. android元素离边框间距,RecyclerView Item 的分割线 距边框距离问题总结
  3. 常用的机器学习数据挖掘知识点【转】
  4. linux httpd 支持php配置,Linux9.5 配置httpd支持php
  5. php webservice 上传大文件,JS和WebService大文件上传代码分享
  6. hduoj 1532
  7. 微星X470主板装机
  8. Layout state should be one of 100 but it is 10起因和解决
  9. GlobalMapper20如何根据EPSG代号生成prj文件
  10. xp系统关于无线网络连接服务器,八步骤搞定XP系统无线网络设置问题
  11. JavaBean字段防止非空赋值
  12. 从屏下指纹到体感手机,vivo能否走出自己的创新之路?
  13. excel从入门到忘记 学习心得分享(含百度网盘分享)
  14. Gartner:云安全进入高速发展期
  15. 【帆软报表】使用技巧及常见问题汇总-持续更新
  16. 微服务架构的基础框架选择
  17. Android实现电量控制降低耗电
  18. java ffmpeg 海康视频流rtsp转http-flv的方式
  19. POI导出Excel遇到数据量大该如何解决
  20. 电脑各种中英文信息对照及错误信息总汇 系统出错信息及解决方案

热门文章

  1. Stratifyd首次国内落地活动,免费报名通道已开启
  2. 支付宝年账单html5,今年你被支付宝年账单如何定义?
  3. 光学设计机械设计---8倍潜望镜的设计
  4. 【Linux】Linux网络编程(含常见服务器模型,下篇)
  5. 百度开源的Warp-CTC人工智能技术
  6. How to Install JAVA 8 (JDK 8u91) on Ubuntu LinuxMint via PPA
  7. aspnet是前端还是后端_asp.net是什么 aspnet是前端还是后端
  8. uniapp 点击获取验证码
  9. Flash 图片上传
  10. Windows 无法启动 VMware Authorization Service 服务