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
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用微信录音将amr转为mp3
- 下一篇: centos linux 快捷键,cen