Sonarqube 8.4 install

Good day

Install SonarQube 8.4, Java 11.0.7. Sonarqube does not start, not even port 9000 is visible.

ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to 2020.09.07 22:54:42 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited
2020.09.07 22:54:42 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2020.09.07 22:54:42 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
–> Wrapper Started as Daemon
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2020.09.07 22:54:46 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp 2020.09.07 22:54:46 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on
2020.09.07 22:54:46 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key= 2020.09.07 22:54:46 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch
2020.09.07 22:54:47 INFO app[o.e.p.PluginsService] no modules loaded
2020.09.07 22:54:47 INFO app[o.e.p.PluginsService] loaded plugin [org.elasti$
Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprec$

Please tell me what you can do

Hello Konstantin,

Hello and thank you for reaching out

I can confirm, that vm.max_map_count parameter needs to be set to at least 262144. In addition it should be checked that:

  1. fs.file-max is greater or equals to 65536
  2. the user running SonarQube can open at least 65536 file descriptors
  3. the user running SonarQube can open at least 4096 threads

These requirements for Linux based Operating system are documented here:
https://docs.sonarqube.org/latest/requirements/requirements/

They are necessary for optimal working of Elastic Search - a component, that SonarQube embeds.

I hope, that helps
Eric