Must-share information (formatted with Markdown):
- which versions are you using: SonarQube community 10.6.0.92116
- how is SonarQube deployed: zip
- What do you want to achieve?
Keep the server running - What have you tried so far to achieve this?
i have tried to change the java values xms and xmx, i have configured the values of vm.max_map_count, fs.file-max,ulimit -n, ulimit -u as described in the official sonarqube manuals, i have also set the environment variables JAVA_OPTS= --add-modules jdk.incubator.vector,
ES_PATH_CONF=/opt/sonarqube/elasticsearch/config,
ES_HOME=/opt/sonarqube/elasticsearch,SONAR_HOME=/opt/sonarqube/bin,JAVA_HOME=/etc/alternatives/java
ES_JAVA_OPTS=-Xms2g -Xmx2g
the log of sonar.log are:
2024.07.04 15:55:48 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
2024.07.04 16:02:37 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2024.07.04 16:02:37 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:35995]
2024.07.04 16:02:38 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/elasticsearch -Des.path.conf=/opt/sonarqube/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/elasticsearch/lib/*:/opt/sonarqube/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2024.07.04 16:02:38 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.07.04 16:02:51 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2024.07.04 16:02:51 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/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 -Xmx2048m -Xms2048m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-10.6.0.92116.jar:/opt/sonarqube/lib/jdbc/h2/h2-2.2.224.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process18249132819368314638properties
2024.07.04 16:02:52 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2024.07.04 16:02:52 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2024.07.04 16:02:52 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2024.07.04 16:02:52 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.07.04 16:02:52 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
2024.07.04 16:11:36 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2024.07.04 16:11:36 WARN app[][o.s.a.c.CommandFactoryImpl] ES_JAVA_OPTS is defined but will be ignored. Use properties sonar.search.javaOpts and/or sonar.search.javaAdditionalOpts in sonar.properties to change SQ JVM processes options
2024.07.04 16:11:36 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:45381]
2024.07.04 16:11:36 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/elasticsearch -Des.path.conf=/opt/sonarqube/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/elasticsearch/lib/*:/opt/sonarqube/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2024.07.04 16:11:36 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.07.04 16:11:49 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2024.07.04 16:11:49 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/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 -Xmx2048m -Xms2048m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-10.6.0.92116.jar:/opt/sonarqube/lib/jdbc/h2/h2-2.2.224.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process254467224020839666properties
2024.07.04 16:11:50 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2024.07.04 16:11:50 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2024.07.04 16:11:50 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2024.07.04 16:11:50 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.07.04 16:11:50 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
2024.07.04 16:18:59 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2024.07.04 16:18:59 WARN app[][o.s.a.c.CommandFactoryImpl] ES_JAVA_OPTS is defined but will be ignored. Use properties sonar.search.javaOpts and/or sonar.search.javaAdditionalOpts in sonar.properties to change SQ JVM processes options
2024.07.04 16:18:59 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:36727]
2024.07.04 16:18:59 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/elasticsearch -Des.path.conf=/opt/sonarqube/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/elasticsearch/lib/*:/opt/sonarqube/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2024.07.04 16:18:59 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.07.04 16:19:13 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2024.07.04 16:19:13 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/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 -Xmx2048m -Xms2048m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-10.6.0.92116.jar:/opt/sonarqube/lib/jdbc/h2/h2-2.2.224.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process3263514198172050322properties
2024.07.04 16:19:14 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2024.07.04 16:19:14 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2024.07.04 16:19:14 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2024.07.04 16:19:14 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.07.04 16:19:14 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
2024.07.04 16:23:32 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2024.07.04 16:23:32 WARN app[][o.s.a.c.CommandFactoryImpl] ES_JAVA_OPTS is defined but will be ignored. Use properties sonar.search.javaOpts and/or sonar.search.javaAdditionalOpts in sonar.properties to change SQ JVM processes options
2024.07.04 16:23:32 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:40441]
2024.07.04 16:23:32 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/elasticsearch -Des.path.conf=/opt/sonarqube/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/elasticsearch/lib/*:/opt/sonarqube/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2024.07.04 16:23:32 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.07.04 16:23:46 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2024.07.04 16:23:46 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/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 -Xmx2048m -Xms2048m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-10.6.0.92116.jar:/opt/sonarqube/lib/jdbc/h2/h2-2.2.224.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process492287614884024809properties
2024.07.04 16:23:47 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2024.07.04 16:23:47 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2024.07.04 16:23:47 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2024.07.04 16:23:47 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.07.04 16:23:47 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
[sonarqube@ip-172-31-19-117 linux-x86-64]$```