# Increasing number of open files descriptors in elastic search

**URL:** <https://discuss.elastic.co/t/increasing-number-of-open-files-descriptors-in-elastic-search/20948>\
**Category:** Elasticsearch\
**Created:** [November 26, 2014, 10:09am UTC](https://discuss.elastic.co/t/increasing-number-of-open-files-descriptors-in-elastic-search/20948 "2014-11-26T10:09:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijay\_Tiwary](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@Vijay\_Tiwary](https://discuss.elastic.co/u/Vijay_Tiwary)\
**Post date:** [November 26, 2014, 10:09am UTC](https://discuss.elastic.co/t/increasing-number-of-open-files-descriptors-in-elastic-search/20948/1 "2014-11-26T10:09:14Z")

</div>

I am increasing the number of open files descriptors for the root user by  
adding the following entry in /etc/sysctl.conf

fs.file-max = 751864

However when I am restarting elastic search as root user then elastic  
search is starting with

max\_file\_descriptors value as 4096

Why the above change is not visible to elastic search?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)\
**Post date:** [November 26, 2014, 12:59pm UTC](https://discuss.elastic.co/t/increasing-number-of-open-files-descriptors-in-elastic-search/20948/2 "2014-11-26T12:59:55Z")

</div>

When the elasticsearch instance restarted, how do you check? Did you check  
using this command cat /proc//limits ?

Jason

On Wed, Nov 26, 2014 at 6:09 PM, Vijay Tiwary [vijaykr.tiwary@gmail.com](mailto:vijaykr.tiwary@gmail.com)  
wrote:

> I am increasing the number of open files descriptors for the root user by  
> adding the following entry in /etc/sysctl.conf
> 
> fs.file-max = 751864
> 
> However when I am restarting Elasticsearch as root user then elastic  
> search is starting with
> 
> max\_file\_descriptors value as 4096
> 
> Why the above change is not visible to Elasticsearch?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHO4itzKNAa-fmXjrxf0CaL2PLCc26kwszPyKOSRwRuSsXLT2w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHO4itzKNAa-fmXjrxf0CaL2PLCc26kwszPyKOSRwRuSsXLT2w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Vijay\_Tiwary](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@Vijay\_Tiwary](https://discuss.elastic.co/u/Vijay_Tiwary)\
**Post date:** [November 26, 2014, 5:37pm UTC](https://discuss.elastic.co/t/increasing-number-of-open-files-descriptors-in-elastic-search/20948/3 "2014-11-26T17:37:55Z")

</div>

Yes. By Using the same command the max open files count is 4096

On Wednesday, November 26, 2014 6:30:02 PM UTC+5:30, Jason Wee wrote:

> When the elasticsearch instance restarted, how do you check? Did you check  
> using this command cat /proc//limits ?
> 
> Jason
> 
> On Wed, Nov 26, 2014 at 6:09 PM, Vijay Tiwary \<[vijaykr...@gmail.com](mailto:vijaykr...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > I am increasing the number of open files descriptors for the root user by  
> > adding the following entry in /etc/sysctl.conf
> > 
> > fs.file-max = 751864
> > 
> > However when I am restarting Elasticsearch as root user then elastic  
> > search is starting with
> > 
> > max\_file\_descriptors value as 4096
> > 
> > Why the above change is not visible to Elasticsearch?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2393716f-1571-4b64-9572-9984ceef76b2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9103aabf-a7f6-4ca9-8624-d7781ec3f757%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9103aabf-a7f6-4ca9-8624-d7781ec3f757%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:47am UTC](https://discuss.elastic.co/t/increasing-number-of-open-files-descriptors-in-elastic-search/20948/4 "2017-07-06T00:47:27Z")

</div>


