# Indexing stopped during field data cache clear

**URL:** https://discuss.elastic.co/t/indexing-stopped-during-field-data-cache-clear/56209
**Category:** Elasticsearch
**Created:** [July 22, 2016, 11:00pm UTC](https://discuss.elastic.co/t/indexing-stopped-during-field-data-cache-clear/56209 "2016-07-22T23:00:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![anupamamann](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@anupamamann](https://discuss.elastic.co/u/anupamamann)
#### Post date: [July 22, 2016, 11:00pm UTC](https://discuss.elastic.co/t/indexing-stopped-during-field-data-cache-clear/56209/1 "2016-07-22T23:00:51Z")

</div>

Hi,

We observed that Indexing stopped on our ES cluster while we were running the curl command to clear up the field data cache. The field data cache was using ~1 GB on each node(54 data node cluster) while the total heap allocated to ES is 30G. Clearing up the cache took us around 2 minutes and indexing stopped for 2 minutes.

I'm unable to understand how clearing up the cache caused indexing to stop? I'm more concerned because this happened on our production cluster, and would like to know if there are any configurations that must be set before clearing the cache to prevent this in future.

---

<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 24, 2016, 2:47am UTC](https://discuss.elastic.co/t/indexing-stopped-during-field-data-cache-clear/56209/2 "2016-07-24T02:47:49Z")

</div>

It might have been GC at the same time, is there anything in the logs?

Why did you clear it?

---

<div class="post-metadata">

### Author: ![anupamamann](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@anupamamann](https://discuss.elastic.co/u/anupamamann)
#### Post date: [July 25, 2016, 10:00pm UTC](https://discuss.elastic.co/t/indexing-stopped-during-field-data-cache-clear/56209/3 "2016-07-25T22:00:16Z")

</div>

Thanks Mark, yes it was GC. Looked through logs and found that the nodes were going through old gc at the same time taking almost 15-18sec. That's a long time for a service to stop responding. We needed to clear the cache as we use doc\_values for sorting/aggregation, a random score query somewhere was using the field cache which we disabled, so it was better to reclaim the memory back from field data cache.

---

<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, 10:33pm UTC](https://discuss.elastic.co/t/indexing-stopped-during-field-data-cache-clear/56209/4 "2017-07-05T22:33:03Z")

</div>


