# Query related to increase in heap memory after multi value field usage

**URL:** <https://discuss.elastic.co/t/query-related-to-increase-in-heap-memory-after-multi-value-field-usage/70639>\
**Category:** Elasticsearch\
**Created:** [January 5, 2017, 6:29am UTC](https://discuss.elastic.co/t/query-related-to-increase-in-heap-memory-after-multi-value-field-usage/70639 "2017-01-05T06:29:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrmohta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nrmohta/32/120038_2.png) [@nrmohta](https://discuss.elastic.co/u/nrmohta)\
**Post date:** [January 5, 2017, 6:29am UTC](https://discuss.elastic.co/t/query-related-to-increase-in-heap-memory-after-multi-value-field-usage/70639/1 "2017-01-05T06:29:57Z")

</div>

Hi,

We have modified our field creation mechanism from not analyzed field to multi valued field (one analyzed and one not analyzed).  
After changing this mechanism we are now seeing increase in disk space (around 15%) and heap memory (around 35%).  
Disk space storage increase is inline with our expected analysis. But this much of heap memory increase was not expected.  
After drilling down usage of heap memory we found that consumption was mainly increase due to more memory usage by 'BlockTreeTermsReader'

Query:

1. Is this heap memory increase is due to usage of multi valued field? (From analysis it seems because of it only, just want to confirm)
2. Is there any optimization we can do to avoid it ?

Please suggest.

Thanks,  
Neeraj.

---

<div class="post-metadata">

**Author:** ![nrmohta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nrmohta/32/120038_2.png) [@nrmohta](https://discuss.elastic.co/u/nrmohta)\
**Post date:** [January 30, 2017, 10:12am UTC](https://discuss.elastic.co/t/query-related-to-increase-in-heap-memory-after-multi-value-field-usage/70639/2 "2017-01-30T10:12:29Z")

</div>

Can any one please reply to confirm and is there any way we can optimize

---

<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:** [February 27, 2017, 10:12am UTC](https://discuss.elastic.co/t/query-related-to-increase-in-heap-memory-after-multi-value-field-usage/70639/3 "2017-02-27T10:12:29Z")

</div>

Closed on February 27, 2017, 10:12am UTC

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