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

一、问题

# docker logs sonarqube_sonarqube_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 /opt/sonarqube/logs/sonarqube.log

二、原因

Elasticsearch 虚拟内存需要至少[262144]

三、解决方案

在宿主机上修改 /etc/sysctl.conf

# vim  /etc/sysctl.conf
vm.max_map_count=262144# /sbin/sysctl -p

四、问题解决

2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy C# Code Quality and Security / 8.46.0.54807 / a9f10bf0c980dd16d428c08c7a984e2205a512df
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Configuration detection fot Code Quality and Security / 1.2.0.267 / 4f37ba9ffb37a96d5883e52ad392ed32c5c6eaab
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Flex Code Quality and Security / 2.7.0.2865 / 9e61d9774455b25eefd0b71bf8903cb030641864
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Go Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy HTML Code Quality and Security / 3.6.0.3106 / 963bdc9f051f5dcb698b418790364231aeea04f2
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy IaC Code Quality and Security / 1.9.2.2279 / f946157f4bbec5a6a1d40cf3418a0360c8c9c1f6
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JaCoCo / 1.1.1.1157 / 83478572b9f23efac29de15e30c7758bbb0c0e47
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Java Code Quality and Security / 7.14.0.30229 / 9079835c8f5e43cef40516cc49073e01bb8ad6e6
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JavaScript/TypeScript/CSS Code Quality and Security / 9.9.0.19492 / e6156f1886415bd21e0726eb92f61d5605187a29
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Kotlin Code Quality and Security / 2.10.0.1456 / 187f0a9c30ba26886ee5975df23e2f31de86a8c1
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy PHP Code Quality and Security / 3.25.0.9077 / 62146fca3dce550eb1dde73881a14c7af4988269
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Python Code Quality and Security / 3.19.0.10254 / 411866233dc7e1f384592447884d27e220cb00ec
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Ruby Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Scala Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Text file Code Quality and Security / 1.1.0.282 / a90347d77706f598413780a08442deec4ae68f4e
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy VB.NET Code Quality and Security / 8.46.0.54807 / a9f10bf0c980dd16d428c08c7a984e2205a512df
2022.11.29 04:04:03 INFO  web[][o.s.s.p.ServerPluginManager] Deploy XML Code Quality and Security / 2.6.1.3686 / 8935c6f8341cd50defba2d8245d91dc4d07e24d0
2022.11.29 04:04:05 INFO  web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2022.11.29 04:04:05 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2022.11.29 04:04:06 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/monitoring/metrics
2022.11.29 04:04:06 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/monitoring/metrics
2022.11.29 04:04:06 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/monitoring/metrics
2022.11.29 04:04:06 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2022.11.29 04:04:06 INFO  web[][o.s.s.p.d.m.AutoDbMigration] Automatically perform DB migration on fresh install
2022.11.29 04:04:06 INFO  web[][DbMigrations] Executing DB migrations...
2022.11.29 04:04:06 INFO  web[][DbMigrations] #1 'Create initial schema'...

五、附录

安装步骤:

$ docker volume create --name sonarqube_data
$ docker volume create --name sonarqube_logs
$ docker volume create --name sonarqube_extensions
$ docker-compose up -d
version: "3"services:sonarqube:image: sonarqube:communitydepends_on:- dbenvironment:SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonarSONAR_JDBC_USERNAME: sonarSONAR_JDBC_PASSWORD: sonarulimits:nofile:soft: 65536hard: 65536volumes:- sonarqube_data:/opt/sonarqube/data- sonarqube_extensions:/opt/sonarqube/extensions- sonarqube_logs:/opt/sonarqube/logsports:- "9000:9000"db:image: postgres:12environment:POSTGRES_USER: sonarPOSTGRES_PASSWORD: sonarvolumes:- postgresql:/var/lib/postgresql- postgresql_data:/var/lib/postgresql/datavolumes:sonarqube_data:sonarqube_extensions:sonarqube_logs:postgresql:postgresql_data:

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

  1. 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 ...

  2. 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 ...

  3. Windows下Docker启动Elasticsearch报max virtual memory areas vm.max_map_count [65530] is too low, increase

    解决Windows下Docker启动Elasticsearch报max virtual memory areas vm.max_map_count [65530] is too low, increa ...

  4. 安装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] 解 ...

  5. 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 ...

  6. 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 ...

  7. [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 ...

  8. 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 ...

  9. ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low

    今天在运行ElasticSearch集群的时候,发现报了下面的错误, {"type": "deprecation", "timestamp" ...

最新文章

  1. SpringBoot启动类的扫描注解的用法及冲突原则
  2. Mycat安装与配置
  3. nutch的index-writers.xml
  4. http://acm.zzuli.edu.cn/zzuliacm/problem.php?id=1895 二分
  5. java中的类与对象(浅谈)
  6. SQL注入——基于报错的注入(五)
  7. mugen4g补丁如何使用_CAD如何去除教育版戳记?
  8. 「Flink」使用Managed Keyed State实现计数窗口功能
  9. VS2019-C++警告-C6385读取数据无效
  10. java多线程信息共享 多线程管理
  11. 康熙通宝铜钱值多少钱?
  12. Vue使用js读取Excel数据
  13. 计算机电磁泄露案例,电磁泄漏
  14. dell R740secure boot_凯诺 10月11日 DELL 电脑报价
  15. 贾俊平统计学思维导图- 第八章 假设检验
  16. Adobe Dreamweaver CS6(或者CC 2018.2 SP)安装失败解决方案
  17. win10计算机怎么拨号上网,win10系统怎么设置拨号上网 设置拨号上网的方法
  18. 面试题:一个人走到岔道处,有2人,一人只说真话一人只说假话,只能问其中一人一个问题,怎么解决?
  19. 硬盘出现坏道的处理方法
  20. linux开启dhcpclient服务,dhcp client 配置

热门文章

  1. 微软c语言编译软件学生版下载,C语言下载_C语言官方下载【C语言编程软件】-太平洋下载中心...
  2. 关于远程服务器如果连接断开的话,服务器上运行的程序会被杀死的问题
  3. ios 3D引擎 SceneKit 开发(2) --贴图篇
  4. Scrum每日站会(Daily Scrum)
  5. 医学图像与高光谱图像
  6. Python基础入门笔记
  7. 深圳计算机维修工考试,深圳市职业技能鉴定(计算机维修工).doc
  8. MySQL Workbench之Data Modeling
  9. BLINK-DataStream开发
  10. 亚马逊的选品规则——新手必看