Skip to content
This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

On Linux systems

This section explains pre-installation steps on the SonarQube Server 10.5 host for the Community, Developer and Enterprise Editions on Linux systems.

For AI agents: You're in the SonarQube Server 10.5 documentation. SonarQube Server 10.5 is no longer patched. To get patches, upgrade to the latest version. For a list of all 10.5 pages, see the SonarQube Server 10.5 page index. For the whole site, see the page index or the full text. For another version, replace 10.5 in the URL with that version. The latest version has no version number in its URL.

Making sure FIPS is not enforced

SonarQube Server will not run on Linux hosts where FIPS (Federal Information Processing Standard) is enforced.

Configuring the host to comply with Elasticsearch

Because SonarQube Server uses an embedded Elasticsearch, make sure that your host configuration complies with the Elasticsearch production mode requirements and File Descriptors configuration.

Configuring the maximum number of open files and other limits

You must ensure that:

  • The maximum number of memory map areas a process may have (vm.max_map_count) is greater than or equal to 524288.

  • The maximum number of open file descriptors (fs.file-max) is greater than or equal to 131072.

  • The user running SonarQube Server can open at least 131072 file descriptors.

  • The user running SonarQube Server can open at least 8192 threads.

You must set these limits on the host system, whatever the installation type:

  • For a Docker installation: These settings will then apply to the Docker container.

  • For a Kubernetes deployment: Check also these guidelines.

To check and change these limits, login as the user used to run SonarQube Server and proceed as described below depending on the type of this user.

For a non-systemd user

1. Verify the values listed above with the following commands:

2. To change the max map count and the file-max, insert the following in /etc/sysctl.d/99-sonarqube.conf (or in /etc/sysctl.conf if you use the default file (not recommended)). To apply the changes, run the corresponding Linux command.

3. To change the limits on the user running SonarQube Server, insert the following in /etc/security/limits.d/99-sonarqube.conf (or in /etc/security/limits.conf if you use the default file (not recommended)) where sonarqube is the user used to run SonarQube Server. To apply the changes, run the corresponding Linux command.

For a systemd user

Specify those limits inside your unit file in the section [Service] :

To change these values dynamically for the current session, run the following commands as root:

Enabling seccomp on the Linux kernel

By default, Elasticsearch uses the seccomp filter. Make sure you use a kernel with seccomp enabled.

To check that seccomp is available on your kernel, use:

If your kernel has seccomp, you’ll see the following:

Managing SonarQube Server access to fonts

Generating executive reports requires that fonts be installed on the server hosting SonarQube Server.

If you use a Linux server, you should ensure that Fontconfig is installed on the server host.

A package of FreeType fonts is installed on the SonarQube Server host. The exact packages available will vary by distribution, but a commonly used package is libfreetype6.

If using an Oracle database

In case your SonarQube Server is running on Linux and you are using Oracle, the Oracle JDBC Driver may be blocked due to /dev/random. See this Oracle article for more details about this problem.

To avoid it, you may want to add this JVM parameter to your SonarQube Server web server (sonar.web.javaOpts) configuration:

Last updated

Was this helpful?