# On macOS systems

### Configuring the host to comply with Elasticsearch <a href="#elasticsearch" id="elasticsearch"></a>

Because SonarQube uses an embedded Elasticsearch, make sure that your host configuration complies with the [Elasticsearch production mode requirements](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode) and [File Descriptors configuration](https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html).

### Configuring the maximum number of open files <a href="#configuring-the-maximum-number-of-open-files" id="configuring-the-maximum-number-of-open-files"></a>

Set the file limit values by running the following commands.

```css-79elbk
sudo sysctl -w kern.maxfiles=131072

sudo sysctl -w kern.maxfilesperproc=131072

ulimit -n 131072
```
