* `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:
```
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.
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).
[Service]
...
LimitNOFILE=65536
-LimitNPROC=2048
+LimitNPROC=4096
...
```