# How it's posiible for query cache to be bigger than total heap?

**URL:** <https://discuss.elastic.co/t/how-its-posiible-for-query-cache-to-be-bigger-than-total-heap/342234>\
**Category:** Elasticsearch\
**Created:** [September 4, 2023, 9:57am UTC](https://discuss.elastic.co/t/how-its-posiible-for-query-cache-to-be-bigger-than-total-heap/342234 "2023-09-04T09:57:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lifer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lifer/32/94603_2.png) [@lifer](https://discuss.elastic.co/u/lifer)\
**Post date:** [September 4, 2023, 9:57am UTC](https://discuss.elastic.co/t/how-its-posiible-for-query-cache-to-be-bigger-than-total-heap/342234/1 "2023-09-04T09:57:38Z")

</div>

Hello!

Our setup: ES 8.8.2, 6 nodes, self-hosted on AWS.

I've noticed something strange in our kibana "stack monitoring" metrics for one of data nodes:

query cache goes up to 14 GB:

 ![Screenshot 2023-09-04 at 12.53.59 PM](https://us1.discourse-cdn.com/elastic/original/3X/9/8/98abae5a9d25e0831951a631fed4c2ba056314d8.png)

but total heap is set to 8GB:

 ![Screenshot 2023-09-04 at 12.53.57 PM](https://us1.discourse-cdn.com/elastic/original/3X/a/7/a7bbb6c454a23830adc7847dcf087613646f5950.png)

and we haven't touched the "indices.queries.cache.size" setting:

```auto
GET /_cluster/settings?include_defaults=true
...
      "queries": {
        "cache": {
          "count": "10000",
          "size": "10%",
          "all_segments": "false"
        }
      },
...

```

How it's possible?

---

<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 2, 2023, 9:57am UTC](https://discuss.elastic.co/t/how-its-posiible-for-query-cache-to-be-bigger-than-total-heap/342234/2 "2023-10-02T09:57:47Z")

</div>

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