# Too many open files issue

**URL:** <https://discuss.elastic.co/t/too-many-open-files-issue/21929>\
**Category:** Elasticsearch\
**Created:** [January 30, 2015, 6:19pm UTC](https://discuss.elastic.co/t/too-many-open-files-issue/21929 "2015-01-30T18:19:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashi\_kiran](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@shashi\_kiran](https://discuss.elastic.co/u/shashi_kiran)\
**Post date:** [January 30, 2015, 6:19pm UTC](https://discuss.elastic.co/t/too-many-open-files-issue/21929/1 "2015-01-30T18:19:38Z")

</div>

Hi All,

I am new to this group. In one of our project we are using ElasticSearch  
server. In normal circumstance we are not facing this issue, but in  
production, we are facing SocketException:Too many open files from Elastic  
Search, Work around found after surfing over the internet was to increase  
the file count, even then we face this issue. We are basically using  
JestClient as a client to connect to ElasticSearch Server. We have a web  
service which basically create client object and execute the Elastic Search  
Query. It would of great help, if any one can help on this issue, basically  
I am trying to understand actual root cause and solution.

Thanks in advance.  
shashi

--  
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/69c5ff17-bb3c-4262-bdba-fcfdb4ef0ed6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/69c5ff17-bb3c-4262-bdba-fcfdb4ef0ed6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [January 30, 2015, 6:26pm UTC](https://discuss.elastic.co/t/too-many-open-files-issue/21929/2 "2015-01-30T18:26:03Z")

</div>

Hi ,

You will need to increase the number of maximum open file descriptors from  
OS.  
You can find more info here -

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Thanks  
Vineeth Mohan,  
Elasticsearch consultant,  
[qbox.io](http://qbox.io) ( Elasticsearch service provider [http://qbox.io](http://qbox.io))

On Fri, Jan 30, 2015 at 11:49 PM, shashi kiran [shuklacs.jc@gmail.com](mailto:shuklacs.jc@gmail.com)  
wrote:

> Hi All,
> 
> I am new to this group. In one of our project we are using Elasticsearch  
> server. In normal circumstance we are not facing this issue, but in  
> production, we are facing SocketException:Too many open files from Elastic  
> Search, Work around found after surfing over the internet was to increase  
> the file count, even then we face this issue. We are basically using  
> JestClient as a client to connect to Elasticsearch Server. We have a web  
> service which basically create client object and execute the Elastic Search  
> Query. It would of great help, if any one can help on this issue, basically  
> I am trying to understand actual root cause and solution.
> 
> Thanks in advance.  
> shashi
> 
> --  
> 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/69c5ff17-bb3c-4262-bdba-fcfdb4ef0ed6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/69c5ff17-bb3c-4262-bdba-fcfdb4ef0ed6%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/69c5ff17-bb3c-4262-bdba-fcfdb4ef0ed6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/69c5ff17-bb3c-4262-bdba-fcfdb4ef0ed6%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/CAGdPd5kgQPczoBmcRg1sBkcp-Azc3BrEsFsZnz%3D8aSZVw8kWNA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kgQPczoBmcRg1sBkcp-Azc3BrEsFsZnz%3D8aSZVw8kWNA%40mail.gmail.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:35am UTC](https://discuss.elastic.co/t/too-many-open-files-issue/21929/3 "2017-07-06T00:35:33Z")

</div>


