# Idle Elasticsearch causing servers to hang

**URL:** <https://discuss.elastic.co/t/idle-elasticsearch-causing-servers-to-hang/13253>\
**Category:** Elasticsearch\
**Created:** [August 19, 2013, 9:20am UTC](https://discuss.elastic.co/t/idle-elasticsearch-causing-servers-to-hang/13253 "2013-08-19T09:20:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vahid](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@Vahid](https://discuss.elastic.co/u/Vahid)\
**Post date:** [August 19, 2013, 9:20am UTC](https://discuss.elastic.co/t/idle-elasticsearch-causing-servers-to-hang/13253/1 "2013-08-19T09:20:39Z")

</div>

Hi all,

There are 6 indexes with 612 shards (each index 102 shards) and about  
3,000,000,000 documents (1500 GB) clustered on 14 nodes.  
During the last 2 days there were neither search nor indexing request  
against ES. Today I checked the ES status, it was red and 4 nodes were not  
accessible and I had to reset them.

The server hang occurs frequently (at least one server a day).  
max\_open\_files is 1048555 (I see the number in the logs, during the ES  
startup) and also bootstrap.mlockall: true configured in the .yml files.

ES version is 20.5  
Linux version: 2.6.32-5-amd64 (Debian 2.6.32-46)  
32g total ram (12g assigned to ES)

Thanks for your helps,  
Vahid

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [August 19, 2013, 9:35am UTC](https://discuss.elastic.co/t/idle-elasticsearch-causing-servers-to-hang/13253/2 "2013-08-19T09:35:47Z")

</div>

The hanging nodes are a problem no doubt. I can't really tell what causes  
this from the infos you gave us but the number of shards you are using is  
certainly way to high. Maybe you start with something like 14 shards or so.  
This will also reduce the # open files dramatically. Yet, I'd recommend to  
also move to a newer version of Elasticsearch (0.90).

simon

On Monday, August 19, 2013 11:20:39 AM UTC+2, Vahid wrote:

> Hi all,
> 
> There are 6 indexes with 612 shards (each index 102 shards) and about  
> 3,000,000,000 documents (1500 GB) clustered on 14 nodes.  
> During the last 2 days there were neither search nor indexing request  
> against ES. Today I checked the ES status, it was red and 4 nodes were not  
> accessible and I had to reset them.
> 
> The server hang occurs frequently (at least one server a day).  
> max\_open\_files is 1048555 (I see the number in the logs, during the ES  
> startup) and also bootstrap.mlockall: true configured in the .yml files.
> 
> ES version is 20.5  
> Linux version: 2.6.32-5-amd64 (Debian 2.6.32-46)  
> 32g total ram (12g assigned to ES)
> 
> Thanks for your helps,  
> Vahid

--  
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).  
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, 2:20am UTC](https://discuss.elastic.co/t/idle-elasticsearch-causing-servers-to-hang/13253/3 "2017-07-06T02:20:38Z")

</div>


