# Elastic too many open files

**URL:** https://discuss.elastic.co/t/elastic-too-many-open-files/148549
**Category:** Elasticsearch
**Created:** [September 14, 2018, 3:49am UTC](https://discuss.elastic.co/t/elastic-too-many-open-files/148549 "2018-09-14T03:49:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![markuchi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markuchi/32/35534_2.png) [@markuchi](https://discuss.elastic.co/u/markuchi)
#### Post date: [September 14, 2018, 4:29am UTC](https://discuss.elastic.co/t/elastic-too-many-open-files/148549/2 "2018-09-14T04:29:41Z")

</div>

We had to add "elasticsearch - nofile 65536" into /etc/security/limits.conf for centos to fix issues we had.  
[https://www.elastic.co/guide/en/elasticsearch/reference/master/setting-system-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/setting-system-settings.html)

The session for elasticsearch user will only take the new setting on the next session so elasticsearch service restart will be required.

Also this thread [After adding "elasticsearch - nofile 65536" still not enough threads are allocated](https://discuss.elastic.co/t/after-adding-elasticsearch-nofile-65536-still-not-enough-threads-are-allocated/74796)  
Says that need nproc not nofile but this conflicts with the documentation...

---

_[View the full topic](https://discuss.elastic.co/t/elastic-too-many-open-files/148549)._
