# Extra memory required to accomodate extra buckets

**URL:** <https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186>\
**Category:** Elasticsearch\
**Created:** [June 28, 2021, 8:13am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186 "2021-06-28T08:13:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashant1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@prashant1](https://discuss.elastic.co/u/prashant1)\
**Post date:** [June 28, 2021, 8:13am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186/1 "2021-06-28T08:13:48Z")

</div>

We are getting too many buckets exception error in viewing the visualization. The default limit for max.buckets is 10000 if we want to increase this parameter to 20000 to resolve the exception so how much would be the extra memory required to accomodate extra buckets ?

Thank you in advance!

BR  
Prashant

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 1, 2021, 2:10am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186/2 "2021-07-01T02:10:15Z")

</div>

That's a little hard to say without more information on your setup.

---

<div class="post-metadata">

**Author:** ![prashant1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@prashant1](https://discuss.elastic.co/u/prashant1)\
**Post date:** [July 1, 2021, 8:45am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186/3 "2021-07-01T08:45:27Z")

</div>

Hi @warkolm  
Thanks for the response

We are using 3master , 3 client and 2 data pod in cluster. Below are the configurations

for client:-

```
  limits:
    cpu: "1"
    memory: "4Gi"
  requests:
    cpu: "500m"
    memory: "2Gi"
es_java_opts: "-Xms2g -Xmx2g"

```

for master:-

```
  limits:
    cpu: "1"
    memory: "2Gi"
  requests:
    cpu: "500m"
    memory: "1Gi"
es_java_opts: "-Xms1g -Xmx1g"

```

for data:-

```
  limits:
    cpu: "1"
    memory: "4Gi"
  requests:
    cpu: "500m"
    memory: "2Gi"
es_java_opts: "-Xms2g -Xmx2g"

```

for kibana:-

```
  limits:
    cpu: "1000m"
    memory: "2Gi"
  requests:
    cpu: "500m"
    memory: "1Gi" 

```

We have around 1 lakh of document in a index. There is one key which has distinct values. We are creating the pie chart visualiation in kibana UI. When we give the size of 6000 it works fine . When we give this size to 7000 it throws bucket exception. So if we want to increase the max bucket\_size then how much extra memory we required.

Or how to check the memory increase if we increase the max bucket\_size ?

Thanks,  
Prashant

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 1, 2021, 9:21am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186/4 "2021-07-01T09:21:20Z")

</div>

That's a pretty small cluster. I would start by doubling the heap on your data nodes and then seeing if the same issue occurs.

---

<div class="post-metadata">

**Author:** ![prashant1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@prashant1](https://discuss.elastic.co/u/prashant1)\
**Post date:** [July 1, 2021, 10:02am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186/5 "2021-07-01T10:02:05Z")

</div>

thanks @warkolm

Is only heap memory is responsible for carrying out buckets operations(when we increase the limit of max bucket\_size) ? Or is there any role of pods resources as well ?

Thanks,  
Prashant

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2021, 2:06am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186/6 "2021-07-05T02:06:10Z")

</div>

It's primarily heap.

---

<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:** [August 2, 2021, 2:07am UTC](https://discuss.elastic.co/t/extra-memory-required-to-accomodate-extra-buckets/277186/7 "2021-08-02T02:07:02Z")

</div>

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