# Red hat and max file descriptors \[4096\] for elasticsearch process is too low, increase to at least \[65536\]

**URL:** https://discuss.elastic.co/t/red-hat-and-max-file-descriptors-4096-for-elasticsearch-process-is-too-low-increase-to-at-least-65536/168408
**Category:** Elasticsearch
**Created:** [February 14, 2019, 12:15pm UTC](https://discuss.elastic.co/t/red-hat-and-max-file-descriptors-4096-for-elasticsearch-process-is-too-low-increase-to-at-least-65536/168408 "2019-02-14T12:15:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kirini](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@kirini](https://discuss.elastic.co/u/kirini)
#### Post date: [February 14, 2019, 12:15pm UTC](https://discuss.elastic.co/t/red-hat-and-max-file-descriptors-4096-for-elasticsearch-process-is-too-low-increase-to-at-least-65536/168408/1 "2019-02-14T12:15:26Z")

</div>

Hi  
I am trying to get sonarqube working on redhat server.  
sonarqube part seems to start ok, but when it tries to start elasticsearch that part fails.  
es.log files get this message

```
2019.02.14 14:04:02 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2019.02.14 14:04:02 WARN es[][o.e.b.BootstrapChecks] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

```

I have changed /etc/security/limits.conf file to following

- 

```
          hard nofile 131072

```

- 

```
          soft nofile 65536

```

root hard nofile 65536  
root soft nofile 65536

server is restarted

ulimit -n  
ulimit -Sn  
ulimit -Hn  
after restart all says 65536 when run as root user  
when I run for sonar user ulimit -Hn is 131072 -n and -Sn shows 65536

any idea what could be wrong?

---

<div class="post-metadata">

### Author: ![kirini](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@kirini](https://discuss.elastic.co/u/kirini)
#### Post date: [February 14, 2019, 1:07pm UTC](https://discuss.elastic.co/t/red-hat-and-max-file-descriptors-4096-for-elasticsearch-process-is-too-low-increase-to-at-least-65536/168408/2 "2019-02-14T13:07:29Z")

</div>

solved that one.  
if sonarqube is started from systemd, then limit values needs to be placed to sonar.service file

start solving next one.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 14, 2019, 1:07pm UTC](https://discuss.elastic.co/t/red-hat-and-max-file-descriptors-4096-for-elasticsearch-process-is-too-low-increase-to-at-least-65536/168408/3 "2019-03-14T13:07:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
