centos 7 服务器上搭建sonarqube过程中提示not enough space

服务器参数
image

已经把max_map_count修改为262144
image

使用命令

#创建容器网络
docker network create sonarqube

#创建数据库容器实例
docker run -d \
  --name sonarqube_postgres \
  --network sonarqube \
  -e POSTGRES_USER=sonarqube \
  -e POSTGRES_PASSWORD=sonarqube \
  -e PGDATA=/var/lib/postgresql/data/pgdata \
  -v $PWD/postgresql_data:/var/lib/postgresql/data \
  postgres

#创建sonarqube容器实例,
docker run -d  \
  --name sonarqube_lu \
  -p 9000:9000 -p 9092:9092 \
  --network sonarqube \
  -e SONARQUBE_JDBC_USERNAME=sonarqube \
  -e SONARQUBE_JDBC_PASSWORD=sonarqube \
  -e SONARQUBE_JDBC_URL="jdbc:postgresql://sonarqube_postgres/sonarqube" \
  -e SONAR_SEARCH_JAVAADDITIONALOPTS="-Xms2g -Xmx2g" \
  -e SONARQUBE_WEB_JVM_OPTS="-Xms1g -Xmx1g" \
  -v $PWD/sonarqube_data:/opt/sonarqube/data \
  -v $PWD/sonarqube_extensions:/opt/sonarqube/extensions \
  -v $PWD/sonarqube_logs:/opt/sonarqube/logs \
  sonarqube

在启动sonarqube时日志报错信息提示not enough space

可以设置一下虚拟机内存, 不设置可能导致SonarQube 镜像内部的es 无法启动

sysctl -w vm.max_map_count=262144 
ulimit -n 65536 
ulimit -u 2048

emm还是这样

Dropping Privileges

2022.10.20 08:34:44 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 08:34:44 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:45507]

2022.10.20 08:34:44 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 08:34:44 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 2147483648, 0) failed; error='Not enough space' (errno=12)

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 2147483648 bytes for committing reserved memory.

# An error report file with more information is saved as:

# ../logs/es_hs_err_pid38.log

2022.10.20 08:34:44 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1

2022.10.20 08:34:44 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 08:34:44 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 08:35:31 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 08:35:31 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:38971]

2022.10.20 08:35:31 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 08:35:31 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 2147483648, 0) failed; error='Not enough space' (errno=12)

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 2147483648 bytes for committing reserved memory.

# An error report file with more information is saved as:

# /opt/sonarqube/elasticsearch/hs_err_pid37.log

2022.10.20 08:35:32 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1

2022.10.20 08:35:32 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 08:35:32 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 08:40:13 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 08:40:13 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:41015]

2022.10.20 08:40:13 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 08:40:13 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 2147483648, 0) failed; error='Not enough space' (errno=12)

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 2147483648 bytes for committing reserved memory.

# An error report file with more information is saved as:

# /opt/sonarqube/elasticsearch/hs_err_pid38.log

2022.10.20 08:40:14 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1

2022.10.20 08:40:14 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 08:40:14 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 08:41:00 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 08:41:00 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:32829]

2022.10.20 08:41:00 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 08:41:00 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2022.10.20 08:41:03 INFO es[][o.e.n.Node] version[7.17.5], pid[38], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/4.18.0-348.7.1.el8_5.x86_64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10-alpine-r0]

2022.10.20 08:41:03 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk]

2022.10.20 08:41:03 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2022.10.20 08:41:04 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2022.10.20 08:41:04 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2022.10.20 08:41:04 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2022.10.20 08:41:04 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2022.10.20 08:41:04 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2022.10.20 08:41:04 INFO es[][o.e.p.PluginsService] no plugins loaded

2022.10.20 08:41:04 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/vda3)]], net usable_space [33.4gb], net total_space [39.8gb], types [xfs]

2022.10.20 08:41:04 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2022.10.20 08:41:04 INFO es[][o.e.n.Node] node name [sonarqube], node ID [7Rki2NNNRTOOFN6wqS0w9Q], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]

2022.10.20 08:41:09 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2022.10.20 08:41:09 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2022.10.20 08:41:09 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2022.10.20 08:41:09 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2022.10.20 08:41:09 INFO es[][o.e.n.Node] initialized

2022.10.20 08:41:09 INFO es[][o.e.n.Node] starting ...

2022.10.20 08:41:09 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:32829}, bound_addresses {127.0.0.1:32829}

2022.10.20 08:41:10 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

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

2022.10.20 08:41:10 INFO es[][o.e.n.Node] stopping ...

2022.10.20 08:41:10 INFO es[][o.e.n.Node] stopped

2022.10.20 08:41:10 INFO es[][o.e.n.Node] closing ...

2022.10.20 08:41:10 INFO es[][o.e.n.Node] closed

2022.10.20 08:41:10 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 78

2022.10.20 08:41:10 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 08:41:10 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 08:42:44 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 08:42:44 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:34081]

2022.10.20 08:42:44 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 08:42:44 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2022.10.20 08:42:47 INFO es[][o.e.n.Node] version[7.17.5], pid[37], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/4.18.0-348.7.1.el8_5.x86_64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10-alpine-r0]

2022.10.20 08:42:47 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk]

2022.10.20 08:42:47 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2022.10.20 08:42:47 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2022.10.20 08:42:47 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2022.10.20 08:42:47 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2022.10.20 08:42:47 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2022.10.20 08:42:47 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2022.10.20 08:42:47 INFO es[][o.e.p.PluginsService] no plugins loaded

2022.10.20 08:42:47 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/vda3)]], net usable_space [33.4gb], net total_space [39.8gb], types [xfs]

2022.10.20 08:42:47 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2022.10.20 08:42:47 INFO es[][o.e.n.Node] node name [sonarqube], node ID [7Rki2NNNRTOOFN6wqS0w9Q], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]

2022.10.20 08:42:52 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2022.10.20 08:42:52 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2022.10.20 08:42:52 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2022.10.20 08:42:52 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2022.10.20 08:42:53 INFO es[][o.e.n.Node] initialized

2022.10.20 08:42:53 INFO es[][o.e.n.Node] starting ...

2022.10.20 08:42:53 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:34081}, bound_addresses {127.0.0.1:34081}

2022.10.20 08:42:53 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

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

2022.10.20 08:42:53 INFO es[][o.e.n.Node] stopping ...

2022.10.20 08:42:53 INFO es[][o.e.n.Node] stopped

2022.10.20 08:42:53 INFO es[][o.e.n.Node] closing ...

2022.10.20 08:42:53 INFO es[][o.e.n.Node] closed

2022.10.20 08:42:53 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 78

2022.10.20 08:42:53 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 08:42:53 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 08:43:51 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 08:43:51 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:37733]

2022.10.20 08:43:51 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 08:43:51 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2022.10.20 08:43:54 INFO es[][o.e.n.Node] version[7.17.5], pid[37], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/4.18.0-348.7.1.el8_5.x86_64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10-alpine-r0]

2022.10.20 08:43:54 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk]

2022.10.20 08:43:54 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2022.10.20 08:43:55 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2022.10.20 08:43:55 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2022.10.20 08:43:55 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2022.10.20 08:43:55 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2022.10.20 08:43:55 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2022.10.20 08:43:55 INFO es[][o.e.p.PluginsService] no plugins loaded

2022.10.20 08:43:55 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/vda3)]], net usable_space [33.4gb], net total_space [39.8gb], types [xfs]

2022.10.20 08:43:55 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2022.10.20 08:43:55 INFO es[][o.e.n.Node] node name [sonarqube], node ID [7Rki2NNNRTOOFN6wqS0w9Q], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]

2022.10.20 08:43:59 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2022.10.20 08:43:59 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2022.10.20 08:43:59 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2022.10.20 08:44:00 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2022.10.20 08:44:00 INFO es[][o.e.n.Node] initialized

2022.10.20 08:44:00 INFO es[][o.e.n.Node] starting ...

2022.10.20 08:44:00 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:37733}, bound_addresses {127.0.0.1:37733}

2022.10.20 08:44:00 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

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

2022.10.20 08:44:00 INFO es[][o.e.n.Node] stopping ...

2022.10.20 08:44:01 INFO es[][o.e.n.Node] stopped

2022.10.20 08:44:01 INFO es[][o.e.n.Node] closing ...

2022.10.20 08:44:01 INFO es[][o.e.n.Node] closed

2022.10.20 08:44:01 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 78

2022.10.20 08:44:01 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 08:44:01 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 08:46:44 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 08:46:44 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:40975]

2022.10.20 08:46:44 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 08:46:44 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2022.10.20 08:46:48 INFO es[][o.e.n.Node] version[7.17.5], pid[37], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/4.18.0-348.7.1.el8_5.x86_64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10-alpine-r0]

2022.10.20 08:46:48 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk]

2022.10.20 08:46:48 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2022.10.20 08:46:48 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2022.10.20 08:46:48 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2022.10.20 08:46:48 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2022.10.20 08:46:48 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2022.10.20 08:46:48 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2022.10.20 08:46:48 INFO es[][o.e.p.PluginsService] no plugins loaded

2022.10.20 08:46:48 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/vda3)]], net usable_space [33.4gb], net total_space [39.8gb], types [xfs]

2022.10.20 08:46:48 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2022.10.20 08:46:49 INFO es[][o.e.n.Node] node name [sonarqube], node ID [7Rki2NNNRTOOFN6wqS0w9Q], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]

2022.10.20 08:46:54 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2022.10.20 08:46:54 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2022.10.20 08:46:54 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2022.10.20 08:46:54 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2022.10.20 08:46:54 INFO es[][o.e.n.Node] initialized

2022.10.20 08:46:54 INFO es[][o.e.n.Node] starting ...

2022.10.20 08:46:55 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:40975}, bound_addresses {127.0.0.1:40975}

2022.10.20 08:46:55 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

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

2022.10.20 08:46:55 INFO es[][o.e.n.Node] stopping ...

2022.10.20 08:46:55 INFO es[][o.e.n.Node] stopped

2022.10.20 08:46:55 INFO es[][o.e.n.Node] closing ...

2022.10.20 08:46:55 INFO es[][o.e.n.Node] closed

2022.10.20 08:46:55 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 78

2022.10.20 08:46:55 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 08:46:55 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 09:06:13 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 09:06:13 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:41087]

2022.10.20 09:06:13 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 09:06:13 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2022.10.20 09:06:16 INFO es[][o.e.n.Node] version[7.17.5], pid[38], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/4.18.0-348.7.1.el8_5.x86_64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10-alpine-r0]

2022.10.20 09:06:16 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk]

2022.10.20 09:06:16 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2022.10.20 09:06:17 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2022.10.20 09:06:17 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2022.10.20 09:06:17 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2022.10.20 09:06:17 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2022.10.20 09:06:17 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2022.10.20 09:06:17 INFO es[][o.e.p.PluginsService] no plugins loaded

2022.10.20 09:06:17 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/vda3)]], net usable_space [33.4gb], net total_space [39.8gb], types [xfs]

2022.10.20 09:06:17 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2022.10.20 09:06:17 INFO es[][o.e.n.Node] node name [sonarqube], node ID [7Rki2NNNRTOOFN6wqS0w9Q], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]

2022.10.20 09:06:21 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2022.10.20 09:06:21 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2022.10.20 09:06:21 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2022.10.20 09:06:21 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2022.10.20 09:06:22 INFO es[][o.e.n.Node] initialized

2022.10.20 09:06:22 INFO es[][o.e.n.Node] starting ...

2022.10.20 09:06:22 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:41087}, bound_addresses {127.0.0.1:41087}

2022.10.20 09:06:22 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

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

2022.10.20 09:06:22 INFO es[][o.e.n.Node] stopping ...

2022.10.20 09:06:22 INFO es[][o.e.n.Node] stopped

2022.10.20 09:06:22 INFO es[][o.e.n.Node] closing ...

2022.10.20 09:06:22 INFO es[][o.e.n.Node] closed

2022.10.20 09:06:22 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 78

2022.10.20 09:06:22 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 09:06:22 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 09:07:10 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 09:07:10 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:40839]

2022.10.20 09:07:11 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 09:07:11 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2022.10.20 09:07:13 INFO es[][o.e.n.Node] version[7.17.5], pid[37], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/4.18.0-348.7.1.el8_5.x86_64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10-alpine-r0]

2022.10.20 09:07:14 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk]

2022.10.20 09:07:14 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2022.10.20 09:07:14 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2022.10.20 09:07:14 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2022.10.20 09:07:14 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2022.10.20 09:07:14 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2022.10.20 09:07:14 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2022.10.20 09:07:14 INFO es[][o.e.p.PluginsService] no plugins loaded

2022.10.20 09:07:14 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/vda3)]], net usable_space [33.4gb], net total_space [39.8gb], types [xfs]

2022.10.20 09:07:14 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2022.10.20 09:07:14 INFO es[][o.e.n.Node] node name [sonarqube], node ID [7Rki2NNNRTOOFN6wqS0w9Q], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]

2022.10.20 09:07:19 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2022.10.20 09:07:19 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2022.10.20 09:07:19 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2022.10.20 09:07:19 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2022.10.20 09:07:19 INFO es[][o.e.n.Node] initialized

2022.10.20 09:07:19 INFO es[][o.e.n.Node] starting ...

2022.10.20 09:07:19 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:40839}, bound_addresses {127.0.0.1:40839}

2022.10.20 09:07:20 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

2022.10.20 09:07:20 INFO es[][o.e.c.c.Coordinator] setting initial configuration to VotingConfiguration{7Rki2NNNRTOOFN6wqS0w9Q}

2022.10.20 09:07:20 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{7Rki2NNNRTOOFN6wqS0w9Q}{LIruFYBoSzKv9KB4qkT6Bg}{127.0.0.1}{127.0.0.1:40839}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: master node changed {previous [], current [{sonarqube}{7Rki2NNNRTOOFN6wqS0w9Q}{LIruFYBoSzKv9KB4qkT6Bg}{127.0.0.1}{127.0.0.1:40839}{cdfhimrsw}]}

2022.10.20 09:07:20 INFO es[][o.e.c.c.CoordinationState] cluster UUID set to [tmZahyQZRq6uSL202sn1wQ]

2022.10.20 09:07:20 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{7Rki2NNNRTOOFN6wqS0w9Q}{LIruFYBoSzKv9KB4qkT6Bg}{127.0.0.1}{127.0.0.1:40839}{cdfhimrsw}]}, term: 1, version: 1, reason: Publication{term=1, version=1}

2022.10.20 09:07:20 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}

2022.10.20 09:07:20 INFO es[][o.e.n.Node] started

2022.10.20 09:07:20 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state

2022.10.20 09:07:20 INFO app[][o.s.a.SchedulerImpl] Process[es] is up

2022.10.20 09:07:20 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/java-11-openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Xms1g -Xmx1g -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.7.0.61563.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.4.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process17408854688768078933properties

2022.10.20 09:07:20 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Not enough space' (errno=12)

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.

# An error report file with more information is saved as:

# /opt/sonarqube/hs_err_pid123.log

2022.10.20 09:07:20 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped

2022.10.20 09:07:20 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143

2022.10.20 09:07:20 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 09:07:20 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 09:18:36 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 09:18:36 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:36841]

2022.10.20 09:18:36 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 09:18:37 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2022.10.20 09:18:40 INFO es[][o.e.n.Node] version[7.17.5], pid[37], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/4.18.0-348.7.1.el8_5.x86_64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10-alpine-r0]

2022.10.20 09:18:40 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk]

2022.10.20 09:18:40 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2022.10.20 09:18:40 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2022.10.20 09:18:40 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2022.10.20 09:18:40 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2022.10.20 09:18:40 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2022.10.20 09:18:40 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2022.10.20 09:18:40 INFO es[][o.e.p.PluginsService] no plugins loaded

2022.10.20 09:18:40 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/vda3)]], net usable_space [33.4gb], net total_space [39.8gb], types [xfs]

2022.10.20 09:18:40 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2022.10.20 09:18:41 INFO es[][o.e.n.Node] node name [sonarqube], node ID [7Rki2NNNRTOOFN6wqS0w9Q], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]

2022.10.20 09:18:45 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2022.10.20 09:18:45 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2022.10.20 09:18:45 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2022.10.20 09:18:45 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2022.10.20 09:18:45 INFO es[][o.e.n.Node] initialized

2022.10.20 09:18:45 INFO es[][o.e.n.Node] starting ...

2022.10.20 09:18:45 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:36841}, bound_addresses {127.0.0.1:36841}

2022.10.20 09:18:46 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

2022.10.20 09:18:46 INFO es[][o.e.c.c.Coordinator] cluster UUID [tmZahyQZRq6uSL202sn1wQ]

2022.10.20 09:18:46 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{7Rki2NNNRTOOFN6wqS0w9Q}{UtfaFCN2R-GSuBoKlrKnEg}{127.0.0.1}{127.0.0.1:36841}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 2, version: 3, delta: master node changed {previous [], current [{sonarqube}{7Rki2NNNRTOOFN6wqS0w9Q}{UtfaFCN2R-GSuBoKlrKnEg}{127.0.0.1}{127.0.0.1:36841}{cdfhimrsw}]}

2022.10.20 09:18:46 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{7Rki2NNNRTOOFN6wqS0w9Q}{UtfaFCN2R-GSuBoKlrKnEg}{127.0.0.1}{127.0.0.1:36841}{cdfhimrsw}]}, term: 2, version: 3, reason: Publication{term=2, version=3}

2022.10.20 09:18:46 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state

2022.10.20 09:18:46 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}

2022.10.20 09:18:46 INFO es[][o.e.n.Node] started

2022.10.20 09:18:46 INFO app[][o.s.a.SchedulerImpl] Process[es] is up

2022.10.20 09:18:46 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/java-11-openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Xms1g -Xmx1g -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.7.0.61563.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.4.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process9890346155195848779properties

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Not enough space' (errno=12)

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.

# An error report file with more information is saved as:

# /tmp/hs_err_pid123.log

2022.10.20 09:18:46 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1

2022.10.20 09:18:46 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped

2022.10.20 09:18:46 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143

2022.10.20 09:18:46 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 09:18:46 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

Dropping Privileges

2022.10.20 13:50:31 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2022.10.20 13:50:31 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:39387]

2022.10.20 13:50:32 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2022.10.20 13:50:32 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 2147483648, 0) failed; error='Not enough space' (errno=12)

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 2147483648 bytes for committing reserved memory.

# An error report file with more information is saved as:

# /tmp/hs_err_pid37.log

2022.10.20 13:50:32 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1

2022.10.20 13:50:32 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped

2022.10.20 13:50:32 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

内存情况: