# Elasticsearch stops working suddenly

**URL:** <https://discuss.elastic.co/t/elasticsearch-stops-working-suddenly/15967>\
**Category:** Elasticsearch\
**Created:** [February 22, 2014, 7:08pm UTC](https://discuss.elastic.co/t/elasticsearch-stops-working-suddenly/15967 "2014-02-22T19:08:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehdi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehdi/32/1783_2.png) [@mehdi](https://discuss.elastic.co/u/mehdi)\
**Post date:** [February 22, 2014, 7:08pm UTC](https://discuss.elastic.co/t/elasticsearch-stops-working-suddenly/15967/1 "2014-02-22T19:08:55Z")

</div>

- deleted -

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 22, 2014, 10:00pm UTC](https://discuss.elastic.co/t/elasticsearch-stops-working-suddenly/15967/2 "2014-02-22T22:00:51Z")

</div>

Take a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/too-many-open-files/)

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 23 February 2014 06:08, Mehdi [medyo4zy@gmail.com](mailto:medyo4zy@gmail.com) wrote:

> I have deployed Elasticsearch on a development ubunto VPS. We use that VPS  
> only to host Api for mobile apps.
> 
> Everything worked good till today, elasticsearch stops working. I tried to  
> restart it, it says Server ok but when i check the status it gives me : is  
> not running.
> 
> The Ruby on Rails app log contains : Errno::ECONNREFUSED (Connection  
> refused - connect(2)) After that, i start getting this error : _Too many  
> open files_
> 
> Does anyone can help me ? Thanks
> 
> --  
> 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/c8481e98-bc29-4846-bb87-18988dfe41fe%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c8481e98-bc29-4846-bb87-18988dfe41fe%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAEM624ZrcO\_QVqfMrKUY9qy3%3DQB\_gfQFtokew6MDxNk7jXP3DQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZrcO_QVqfMrKUY9qy3%3DQB_gfQFtokew6MDxNk7jXP3DQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![mehdi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehdi/32/1783_2.png) [@mehdi](https://discuss.elastic.co/u/mehdi)\
**Post date:** [February 22, 2014, 11:03pm UTC](https://discuss.elastic.co/t/elasticsearch-stops-working-suddenly/15967/3 "2014-02-22T23:03:53Z")

</div>

Already tried

Le samedi 22 février 2014 22:00:51 UTC, Mark Walkom a écrit :

> Take a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/too-many-open-files/)
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 23 February 2014 06:08, Mehdi \<[medy...@gmail.com](mailto:medy...@gmail.com) \<javascript:\>\> wrote:
> 
> > I have deployed Elasticsearch on a development ubunto VPS. We use that  
> > VPS only to host Api for mobile apps.
> > 
> > Everything worked good till today, elasticsearch stops working. I tried  
> > to restart it, it says Server ok but when i check the status it gives me :  
> > is not running.
> > 
> > The Ruby on Rails app log contains : Errno::ECONNREFUSED (Connection  
> > refused - connect(2)) After that, i start getting this error : _Too many  
> > open files_
> > 
> > Does anyone can help me ? Thanks
> > 
> > --  
> > 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/c8481e98-bc29-4846-bb87-18988dfe41fe%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c8481e98-bc29-4846-bb87-18988dfe41fe%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/637920e5-4b6a-4de6-bd4b-4ab164f24c6e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/637920e5-4b6a-4de6-bd4b-4ab164f24c6e%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 24, 2014, 3:04pm UTC](https://discuss.elastic.co/t/elasticsearch-stops-working-suddenly/15967/4 "2014-02-24T15:04:45Z")

</div>

Hey,

please be more verbose than that. Use the nodes stats and nodes info APIs  
to find out how many files the elasticsearch process is allowed to open,  
and how many files are open. Show us the output here.  
Any special linux distribution or any special security settings which might  
prevent setting the max open file descriptors? Please check the max open  
files settings in your configuration file as well:

> **[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.

Happy to hear back!

--Alex

On Sun, Feb 23, 2014 at 12:03 AM, Mehdi [medyo4zy@gmail.com](mailto:medyo4zy@gmail.com) wrote:

> Already tried
> 
> Le samedi 22 février 2014 22:00:51 UTC, Mark Walkom a écrit :
> 
> > Take a look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/too-many-open-)  
> > files/
> > 
> > Regards,  
> > Mark Walkom
> > 
> > Infrastructure Engineer  
> > Campaign Monitor  
> > email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com)  
> > web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> > 
> > On 23 February 2014 06:08, Mehdi [medy...@gmail.com](mailto:medy...@gmail.com) wrote:
> > 
> > > I have deployed Elasticsearch on a development ubunto VPS. We use that  
> > > VPS only to host Api for mobile apps.
> > > 
> > > Everything worked good till today, elasticsearch stops working. I tried  
> > > to restart it, it says Server ok but when i check the status it gives me :  
> > > is not running.
> > > 
> > > The Ruby on Rails app log contains : Errno::ECONNREFUSED (Connection  
> > > refused - connect(2)) After that, i start getting this error : _Too  
> > > many open files_
> > > 
> > > Does anyone can help me ? Thanks
> > > 
> > > --  
> > > 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).
> > > 
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/c8481e98-bc29-4846-bb87-18988dfe41fe%  
> > > [40googlegroups.com](http://40googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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/637920e5-4b6a-4de6-bd4b-4ab164f24c6e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/637920e5-4b6a-4de6-bd4b-4ab164f24c6e%40googlegroups.com)  
> > .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAGCwEM-Pvn2aqa9Pw6zSUTL7f33J%2Bg7YOUN5518b8UxZFajXpg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-Pvn2aqa9Pw6zSUTL7f33J%2Bg7YOUN5518b8UxZFajXpg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:47am UTC](https://discuss.elastic.co/t/elasticsearch-stops-working-suddenly/15967/5 "2017-07-06T01:47:46Z")

</div>


