# Query cache is getting cleared under heavy query load

**URL:** <https://discuss.elastic.co/t/query-cache-is-getting-cleared-under-heavy-query-load/341704>\
**Category:** Elasticsearch\
**Created:** [August 25, 2023, 3:36pm UTC](https://discuss.elastic.co/t/query-cache-is-getting-cleared-under-heavy-query-load/341704 "2023-08-25T15:36:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahesh44](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mahesh44](https://discuss.elastic.co/u/mahesh44)\
**Post date:** [August 25, 2023, 3:36pm UTC](https://discuss.elastic.co/t/query-cache-is-getting-cleared-under-heavy-query-load/341704/1 "2023-08-25T15:36:10Z")

</div>

We are seeing exact same issue mentioned in the below post after upgrading to ES 7.17.8. This issue still exists even in the ES 8.8.0. Can someone please help with the solution for this.  
[ES 7.17 | Exponentially growing query cache](https://discuss.elastic.co/t/es-7-17-exponentially-growing-query-cache/298784).

---

<div class="post-metadata">

**Author:** ![gerard27](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@gerard27](https://discuss.elastic.co/u/gerard27)\
**Post date:** [September 5, 2023, 2:37pm UTC](https://discuss.elastic.co/t/query-cache-is-getting-cleared-under-heavy-query-load/341704/2 "2023-09-05T14:37:41Z")

</div>

Hello, we are facing the same issue with ES 8.8.1. The query cache size is growing faster than the version 7.8. It reaches the maximum allowed (10% 3,1G) for a while , then the cache is not used anymore (hit =0) and the value of the cache size is unrealistic. It keep growing to a TeraByte in the \_nodes stats.

 ![query_cache_size_clean](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9e85fc4b9e82cfe96fa75bc6edc87bbe472fcf75.png)

---

<div class="post-metadata">

**Author:** ![gerard27](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@gerard27](https://discuss.elastic.co/u/gerard27)\
**Post date:** [September 5, 2023, 2:38pm UTC](https://discuss.elastic.co/t/query-cache-is-getting-cleared-under-heavy-query-load/341704/3 "2023-09-05T14:38:15Z")

</div>

![query_cache_hits](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f836c76d934ef84caabbcc3705b85e9693d6f91a.png)

---

<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:** [October 3, 2023, 2:39pm UTC](https://discuss.elastic.co/t/query-cache-is-getting-cleared-under-heavy-query-load/341704/4 "2023-10-03T14:39:10Z")

</div>

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