# Elasticsearch getting stucked after few iterations

**URL:** <https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164>\
**Category:** Elasticsearch\
**Created:** [June 28, 2016, 1:08pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164 "2016-06-28T13:08:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashant](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@prashant](https://discuss.elastic.co/u/prashant)\
**Post date:** [June 28, 2016, 1:08pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164/1 "2016-06-28T13:08:12Z")

</div>

Hello,

I am using ES ver 1.7.4 and we are using java api to search and make connection to es. Searching and making connection is in parallel, we have observed that after few minutes elasticsearch getting stucked, neither we are getting any new connection and the search queries are all stuck. After 1 minutes all the porcess resumes and then the operations work normally. This is impacting the performance of our application.

We have 5 nodes in cluster with 32 Gb Ram and 16 cores processor, one es index with 5 shards no replica, no of documents is approx 480 million.

Please help.

Thanks,  
Prashant

---

<div class="post-metadata">

**Author:** ![ravitandur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravitandur/32/4568_2.png) [@ravitandur](https://discuss.elastic.co/u/ravitandur)\
**Post date:** [June 28, 2016, 1:42pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164/2 "2016-06-28T13:42:48Z")

</div>

Can you share thread dumps of application when it is in hang state.  
Please check the ES GC behaviour? is there any long GC pauses?  
Also, u can use hot threads rest API to find what ES cluster is doing during the hang state.  
use below:  
[http://localhost:9200/\_nodes/hotthreads](http://localhost:9200/_nodes/hotthreads)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 28, 2016, 2:04pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164/3 "2016-06-28T14:04:24Z")

</div>

Did not you ask a similar question [here](https://discuss.elastic.co/t/concurrent-search-in-elasticsearch/54021)?

Probably you have Long GC running? Do you see anything in logs?

---

<div class="post-metadata">

**Author:** ![prashant](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@prashant](https://discuss.elastic.co/u/prashant)\
**Post date:** [June 28, 2016, 5:59pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164/4 "2016-06-28T17:59:30Z")

</div>

> [@dadoonet](#):
>
> Probably you have Long GC running? Do you see anything in logs?

No there is nothing in the log,...will share the thread dump

---

<div class="post-metadata">

**Author:** ![prashant](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@prashant](https://discuss.elastic.co/u/prashant)\
**Post date:** [June 29, 2016, 6:15am UTC](https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164/5 "2016-06-29T06:15:43Z")

</div>

GC Log...

[2016-06-29 10:32:35,782][INFO][monitor.jvm] [match 3] [gc][young][1704][10] duration [876ms], collections [1]/[1.5s], total [876ms]/[4.9s], memory [3.6gb]-\>[3.5gb]/[9.8gb], all\_pools {[young] [830.5mb]-\>[4mb]/[865.3mb]}{[survivor] [108.1mb]-\>[108.1mb]/[108.1mb]}{[old] [2.7gb]-\>[3.4gb]/[8.9gb]}

---

<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 5, 2017, 10:39pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-stucked-after-few-iterations/54164/6 "2017-07-05T22:39:45Z")

</div>


