Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Several database engines are supported.

Create an empty schema and a sonarqube user. Grant this sonarqube user permissions to create, update and delete objects for this schema. The charset of the database has to be set to "UTF-8" and the language to "English". Here is a sample script for MySQL.

Info
titleTuning MySQL Database

There are two well-known engines that can be used in MySQL: MyISAM and InnoDB. MyISAM is the oldest of the two engines and is being progressively replaced by InnoDB. InnoDB is clearly faster and scales better with SonarQube when as the number of projects under quality control increases. If you have been were an early adopter of SonarQube, you probably have a series of table that are still using MyISAM. To improve performances, you should change the engine for all tables to InnoDB.

Once all SonarQube tables are using the InnoDB engine, the first thing to do is allocate a maximum amount of RAM to your MySQL instance with the innodb_buffer_pool_size parameter and give at least 15Mb to the query_cache_size parameter. Read this article about InnoDB Performance Optimization Basics to get for more information.

Anchor
installingWebServer
installingWebServer
Installing the Web Server

...

The default port is "9000" and the context path is "/". Parameters These values can be changed in <install_directory>/conf/sonar.properties:

...