# ES 1.7.x heap reclamation issue

**URL:** <https://discuss.elastic.co/t/es-1-7-x-heap-reclamation-issue/45451>\
**Category:** Elasticsearch\
**Created:** [March 25, 2016, 2:09pm UTC](https://discuss.elastic.co/t/es-1-7-x-heap-reclamation-issue/45451 "2016-03-25T14:09:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnclaus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnclaus/32/8694_2.png) [@johnclaus](https://discuss.elastic.co/u/johnclaus)\
**Post date:** [March 25, 2016, 2:09pm UTC](https://discuss.elastic.co/t/es-1-7-x-heap-reclamation-issue/45451/1 "2016-03-25T14:09:37Z")

</div>

I've been running into issues with ES 1.7.3 (and previous 1.7.x versions) on JDK 1.8 where heap reclamations gradually elide with one another, to the point where they then rise to thresholds that require a manual rolling restart? The [following link](https://www.evernote.com/shard/s33/sh/6af977b2-31d0-4f62-bdf6-bb8a241d94dc/4eda1e459cc135491dcf9dc8acb8afba) is a snapshot of heap usage for our ES nodes from a Grafana dashboard over a 30 day span. The 2 larger GC's were manual restarts of our cluster.

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [March 25, 2016, 2:45pm UTC](https://discuss.elastic.co/t/es-1-7-x-heap-reclamation-issue/45451/2 "2016-03-25T14:45:21Z")

</div>

It is hard to tell what the cause is but usually memory issues in 1.7 are caused by field data. You should be able to convert that to doc values to save memory. Doc values are the default for indexes created in 2.x and above. There are other memory consumers, like norms which were moved to disk in 2.x somewhere as well. You should be able to jump around the various stats APIs to see what might be consuming the memory. Or you can just blindly convert to doc values because it'll probably help.

---

<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:** [July 5, 2017, 11:05pm UTC](https://discuss.elastic.co/t/es-1-7-x-heap-reclamation-issue/45451/3 "2017-07-05T23:05:10Z")

</div>


