]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR 11264 update ElasticSearch max threads
authormichaelbirnstiehl <michael.birnstiehl@sonarsource.com>
Tue, 28 May 2019 21:08:23 +0000 (16:08 -0500)
committerSonarTech <sonartech@sonarsource.com>
Wed, 12 Jun 2019 18:21:09 +0000 (20:21 +0200)
server/sonar-docs/src/pages/requirements/requirements.md

index d015e5b647f8f956c25e1db245f1bdabd49f1fd1..9ded6847350c3d1a894df2a6d51fb67b67c49264 100644 (file)
@@ -87,7 +87,7 @@ If you're running on Linux, you must ensure that:
 * `vm.max_map_count` is greater or equals to 262144
 * `fs.file-max` is greater or equals to 65536
 * the user running SonarQube can open at least 65536 file descriptors
-* the user running SonarQube can open at least 2048 threads
+* the user running SonarQube can open at least 4096 threads
 
 You can see the values with the following commands:
 ```
@@ -102,7 +102,7 @@ You can set them dynamically for the current session by running  the following c
 sysctl -w vm.max_map_count=262144
 sysctl -w fs.file-max=65536
 ulimit -n 65536
-ulimit -u 2048
+ulimit -u 4096
 ```
 
 To set these values more permanently, you must update either _/etc/sysctl.d/99-sonarqube.conf_ (or _/etc/sysctl.conf_ as you wish) to reflect these values.
@@ -110,7 +110,7 @@ To set these values more permanently, you must update either _/etc/sysctl.d/99-s
 If the user running SonarQube (`sonarqube` in this example) does not have the permission to have at least 65536 open descriptors, you must insert this line in _/etc/security/limits.d/99-sonarqube.conf_ (or _/etc/security/limits.conf_ as you wish):
 ```
 sonarqube   -   nofile   65536
-sonarqube   -   nproc    2048
+sonarqube   -   nproc    4096
 ```
 
 You can get more detail in the [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/system-config.html).
@@ -120,7 +120,7 @@ If you are using `systemd` to start SonarQube, you must specify those limits ins
 [Service]
 ...
 LimitNOFILE=65536
-LimitNPROC=2048
+LimitNPROC=4096
 ...
 ```