# Reindex GC overhead

**URL:** https://discuss.elastic.co/t/reindex-gc-overhead/122676
**Category:** Elasticsearch
**Created:** [March 6, 2018, 8:59am UTC](https://discuss.elastic.co/t/reindex-gc-overhead/122676 "2018-03-06T08:59:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![timprosteps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timprosteps/32/28472_2.png) [@timprosteps](https://discuss.elastic.co/u/timprosteps)
#### Post date: [March 6, 2018, 8:59am UTC](https://discuss.elastic.co/t/reindex-gc-overhead/122676/1 "2018-03-06T08:59:11Z")

</div>

Hi,

We are trying to do a reindex of one of our live indexes which contains 9.6 million docs and is 48 gig in size.  
Elasticsearch is running on 1 machine with 36 CPU cores and 60gig ram. I gave Elasticsearch 30gig as heap size (in the jvm.options file).  
We first tried to do this on a backup of this machine which worked perfectly; it took around 30 minutes to reindex all data.

Now we did the same on our production machine and it started out great; it did about 7 million documents on just under 30 minutes but then it slowed down so much it took 10 minutes to do 1 batch, finally resulting in elasticSearch not returning results anymore and reindex just seem to be stopped. The task was still active though.  
After cancelling the task I can see the index has build 8 million docs so it was pretty close, unfortunately it is not usable like this.

Some more info:

- We are running ES 5.3.0
- New index has refresh interval set to -1 to speed up indexing.
- Reindex happens in batches of 5000.
- Machine is using about 450% CPU (100% = 1 core) and about 9g ram during the reindex.
- I'm seeing alot of these errors:

"[2018-03-06T08:34:58,699][WARN][o.e.m.j.JvmGcMonitorService] [BcXdUDQ] [gc][2744] overhead, spent [1.1s] collecting in the last [1.7s]"

I suppose this is the issue? Any way I can prevent these and get my reindex through? The machine is heavy enough to easily do this I think.

---

<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: [April 3, 2018, 8:59am UTC](https://discuss.elastic.co/t/reindex-gc-overhead/122676/2 "2018-04-03T08:59:29Z")

</div>

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