# Cluster runs out of memory and service stops during re-index

**URL:** https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711
**Category:** Elasticsearch
**Created:** [June 13, 2019, 5:33pm UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711 "2019-06-13T17:33:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jessgreen](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jessgreen](https://discuss.elastic.co/u/jessgreen)
#### Post date: [June 13, 2019, 5:33pm UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711/1 "2019-06-13T17:33:33Z")

</div>

I use elasticsearch as our document content engine with HPE Content Manager. When I reindex my dataset the elasticservice stops due to bulkloader transactions timing out with the service. The memory reaches its threshhold. This has been happening on a physical server with 16GB of ram. I tried a trial of elastic service (cloud) and had the same probably with 30GB of ram.  
My question is how can I reduce the memory pressure in my cluster? Can this be done by altering the mapping of my index?

---

<div class="post-metadata">

### Author: ![kheldar](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kheldar](https://discuss.elastic.co/u/kheldar)
#### Post date: [June 14, 2019, 2:12pm UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711/2 "2019-06-14T14:12:42Z")

</div>

I also have this issue so am interested in any answer.

In my case I have pinpointed a single document which it is trying to index. (The URI of the record in trouble can become clear if you watch the re-index process) I am doing a full re-index bit by bit and so far only the single document has caused this issue. I am nearly finished. Therefore I conclude that the structure of the document content is somehow problematical to Elasticsearch. It's a spreadsheet containing many rows of unique data but it's only 63Kb.

---

<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: [June 17, 2019, 12:34am UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711/3 "2019-06-17T00:34:20Z")

</div>

Welcome 🙂

Can you share any logs or errors?  
What version of Elasticsearch?  
How are you starting the reindex?

---

<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: [June 17, 2019, 12:34am UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711/4 "2019-06-17T00:34:50Z")

</div>

Welcome!

It'd be better if you could create your own thread for this question 🙂

---

<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 15, 2019, 12:35am UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711/5 "2019-07-15T00:35:08Z")

</div>

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