# Elasticsearch Search queries are slow for the first few attempts

**URL:** <https://discuss.elastic.co/t/elasticsearch-search-queries-are-slow-for-the-first-few-attempts/206620>\
**Category:** Elasticsearch\
**Created:** [November 5, 2019, 1:29pm UTC](https://discuss.elastic.co/t/elasticsearch-search-queries-are-slow-for-the-first-few-attempts/206620 "2019-11-05T13:29:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjaikumar](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pjaikumar](https://discuss.elastic.co/u/pjaikumar)\
**Post date:** [November 5, 2019, 1:29pm UTC](https://discuss.elastic.co/t/elasticsearch-search-queries-are-slow-for-the-first-few-attempts/206620/1 "2019-11-05T13:29:22Z")

</div>

Hi,

We are facing a latency issue with queries where it takes up-to 9 secs for the first time and then slowly it reduces to 5s,3s..etc and eventually it comes lighting fast with less than 150 millisecond. Again it goes back to higher latency if we try the same query lets say after couple of mins.

We are using all default setting for caching , has anyone faced this type of behavior with queries, also any pointers to resolve this ?

Below is our cluster configuration.

ES Version: 7.4  
3 Node cluster - 16GB RAM Box - 10 GB allocated to heap.  
GC: CMS  
Docs: 185097578  
Size 138.gb

---

<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:** [December 3, 2019, 1:29pm UTC](https://discuss.elastic.co/t/elasticsearch-search-queries-are-slow-for-the-first-few-attempts/206620/2 "2019-12-03T13:29:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
