# 0.90.11 stuck with high memory usage during bulk indexing and even hours after stopping

**URL:** https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779
**Category:** Elasticsearch
**Created:** [February 13, 2014, 3:19pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779 "2014-02-13T15:19:28Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Ankush\_Jhalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankush_jhalani/32/875_2.png) [@Ankush\_Jhalani](https://discuss.elastic.co/u/Ankush_Jhalani)
#### Post date: [February 13, 2014, 3:19pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/1 "2014-02-13T15:19:28Z")

</div>

We have a single node, 12GB, 16 core ES instance to which we are 12 threads  
bulk indexing into a 12shard index. Each thread sends a request of size kb  
to couple megabytes. The thread bulk queue\_size is increased from default  
50 to 100.

With v0.90.11, we are noticing that the jvm memory usage keeps growing  
slowly and doesn't go down, gc runs frequently but doesn't free up much  
memory. From debug logs, it seems the segment merges are happening. However  
even after we stop indexing, for many hours the instance is busy doing  
segment merges. Sample gist from hot threads I ran couple minutes apart -  
([https://gist.github.com/ajhalani/8976792](https://gist.github.com/ajhalani/8976792)). Even after 16 hours and little  
use on the machine, the jvm memory usage is about 80% (CMS should run at  
75%) and nodes stats show is running very frequently.

If we don't stop indexing, eventually after 60-70GB indexing the instance  
goes out of memory. This seems like a memory leak, we didn't face this  
issue with 0.90.7 (though we were probably using a 6 thread process for  
bulk indexing).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a1819d5f-caa3-4ac4-886f-5b560eada87a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a1819d5f-caa3-4ac4-886f-5b560eada87a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Ankush\_Jhalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankush_jhalani/32/875_2.png) [@Ankush\_Jhalani](https://discuss.elastic.co/u/Ankush_Jhalani)
#### Post date: [February 13, 2014, 5:10pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/2 "2014-02-13T17:10:13Z")

</div>

Following is histogram of java object heap, dumped using jmap -histo  
num #instances#bytes class name

* * *

1: 1888557 4767284496 [B

2: 198190 1892640192 [S

3: 256130 1546754512 [I

4: 119853 1198288048 [J

5: 230881 121272272 [Lorg.apache.lucene.util.fst.FST$Arc;

6: 1391854 93015760 [C

7: 842721 60675912 org.apache.lucene.util.fst.FST$Arc

8: 1122220 35911040 java.util.HashMap$Entry

9: 1329252 31902048 java.lang.String

10: 690285 27611400 java.util.TreeMap$Entry

11: 1133480 27203520 org.apache.lucene.util.BytesRef

12: 283533 26415040 [Ljava.util.HashMap$Entry;

13: 229605 23878920 org.apache.lucene.util.fst.FST

14: 259069 18856896 [Ljava.lang.Object;

15: 229603 16531416  
org.apache.lucene.codecs.BlockTreeTermsReader$FieldReader

16: 266852 14943712 java.util.HashMap

17: 230422 11060256 org.apache.lucene.index.FieldInfo

On Thursday, February 13, 2014 10:19:28 AM UTC-5, Ankush Jhalani wrote:

> We have a single node, 12GB, 16 core ES instance to which we are 12  
> threads bulk indexing into a 12shard index. Each thread sends a request of  
> size kb to couple megabytes. The thread bulk queue\_size is increased from  
> default 50 to 100.
> 
> With v0.90.11, we are noticing that the jvm memory usage keeps growing  
> slowly and doesn't go down, gc runs frequently but doesn't free up much  
> memory. From debug logs, it seems the segment merges are happening. However  
> even after we stop indexing, for many hours the instance is busy doing  
> segment merges. Sample gist from hot threads I ran couple minutes apart - (  
> [Hot threads for a node doing merge segments very slowly · GitHub](https://gist.github.com/ajhalani/8976792)). Even after 16 hours and little  
> use on the machine, the jvm memory usage is about 80% (CMS should run at  
> 75%) and nodes stats show is running very frequently.
> 
> If we don't stop indexing, eventually after 60-70GB indexing the instance  
> goes out of memory. This seems like a memory leak, we didn't face this  
> issue with 0.90.7 (though we were probably using a 6 thread process for  
> bulk indexing).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c60091b9-52e2-4b3e-9456-25985e80c1d5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c60091b9-52e2-4b3e-9456-25985e80c1d5%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Ankush\_Jhalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankush_jhalani/32/875_2.png) [@Ankush\_Jhalani](https://discuss.elastic.co/u/Ankush_Jhalani)
#### Post date: [February 13, 2014, 5:13pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/3 "2014-02-13T17:13:25Z")

</div>

If it helps, following is jmap memory summary and object heap histogram  
([jvm stuck high memory · GitHub](https://gist.github.com/ajhalani/8977548))

On Thursday, February 13, 2014 10:19:28 AM UTC-5, Ankush Jhalani wrote:

> We have a single node, 12GB, 16 core ES instance to which we are 12  
> threads bulk indexing into a 12shard index. Each thread sends a request of  
> size kb to couple megabytes. The thread bulk queue\_size is increased from  
> default 50 to 100.
> 
> With v0.90.11, we are noticing that the jvm memory usage keeps growing  
> slowly and doesn't go down, gc runs frequently but doesn't free up much  
> memory. From debug logs, it seems the segment merges are happening. However  
> even after we stop indexing, for many hours the instance is busy doing  
> segment merges. Sample gist from hot threads I ran couple minutes apart - (  
> [Hot threads for a node doing merge segments very slowly · GitHub](https://gist.github.com/ajhalani/8976792)). Even after 16 hours and little  
> use on the machine, the jvm memory usage is about 80% (CMS should run at  
> 75%) and nodes stats show is running very frequently.
> 
> If we don't stop indexing, eventually after 60-70GB indexing the instance  
> goes out of memory. This seems like a memory leak, we didn't face this  
> issue with 0.90.7 (though we were probably using a 6 thread process for  
> bulk indexing).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3d8c3388-9932-4fbd-a430-e9ee73e613bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3d8c3388-9932-4fbd-a430-e9ee73e613bb%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [February 13, 2014, 8:56pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/4 "2014-02-13T20:56:27Z")

</div>

There is no leak.

It is expected that ES uses all available memory.

Do you see any GC messages, or errors in the log?

Are you executing queries that use Lucene FST? Did you try to reduce memory  
by disabling bloom filter loading? (index.codec.bloom.load=false)

Besides, I suggest updating the Java JVM, it is an older version.

Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEGkiuMHFGFBxeZ70KnFRdVWe%2BjeduUfYYpwbVRAu%2BHMA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEGkiuMHFGFBxeZ70KnFRdVWe%2BjeduUfYYpwbVRAu%2BHMA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [February 13, 2014, 10:55pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/5 "2014-02-13T22:55:54Z")

</div>

If you are doing indexing intensively, maybe merge throttling[1] is set to  
a too low value and background merging cannot keep up with the new segments  
that are created? Can you check how many segments you have in your index on  
the moment when you stop indexing?

[1]

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Thu, Feb 13, 2014 at 6:13 PM, Ankush Jhalani [ankush.jhalani@gmail.com](mailto:ankush.jhalani@gmail.com)wrote:

> If it helps, following is jmap memory summary and object heap histogram (  
> [jvm stuck high memory · GitHub](https://gist.github.com/ajhalani/8977548))
> 
> On Thursday, February 13, 2014 10:19:28 AM UTC-5, Ankush Jhalani wrote:
> 
> > We have a single node, 12GB, 16 core ES instance to which we are 12  
> > threads bulk indexing into a 12shard index. Each thread sends a request of  
> > size kb to couple megabytes. The thread bulk queue\_size is increased from  
> > default 50 to 100.
> > 
> > With v0.90.11, we are noticing that the jvm memory usage keeps growing  
> > slowly and doesn't go down, gc runs frequently but doesn't free up much  
> > memory. From debug logs, it seems the segment merges are happening. However  
> > even after we stop indexing, for many hours the instance is busy doing  
> > segment merges. Sample gist from hot threads I ran couple minutes apart - (  
> > [Hot threads for a node doing merge segments very slowly · GitHub](https://gist.github.com/ajhalani/8976792)). Even after 16 hours and  
> > little use on the machine, the jvm memory usage is about 80% (CMS should  
> > run at 75%) and nodes stats show is running very frequently.
> > 
> > If we don't stop indexing, eventually after 60-70GB indexing the instance  
> > goes out of memory. This seems like a memory leak, we didn't face this  
> > issue with 0.90.7 (though we were probably using a 6 thread process for  
> > bulk indexing).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/3d8c3388-9932-4fbd-a430-e9ee73e613bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3d8c3388-9932-4fbd-a430-e9ee73e613bb%40googlegroups.com)  
> > .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j54Nk%2BvT4xGnRy6yFFKzne2vyyazwcJznN%2B9w-yXKkfyA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j54Nk%2BvT4xGnRy6yFFKzne2vyyazwcJznN%2B9w-yXKkfyA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Ankush\_Jhalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankush_jhalani/32/875_2.png) [@Ankush\_Jhalani](https://discuss.elastic.co/u/Ankush_Jhalani)
#### Post date: [February 14, 2014, 3:13pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/6 "2014-02-14T15:13:46Z")

</div>

Thanks both for your input.

@Jörg:  
I understand ES uses all available process memory. I meant jvm memory  
usage, which it tries to reclaims when it exceeds 75% (due  
to -XX:CMSInitiatingOccupancyFraction=75) option.  
I don't know what kind of queries use Lucene FST, could you be kind enough  
to explain. I also didn't know about bloom filter and it's  
memory usage, is their a way to check how much memory usage it's adding.

I will update JVM, but the issue is the same bulk indexing was not making  
node out of memory in v0.90.7, it's doing it with v0.90.11

@\*Adrien \*:  
I will play with merge throttling to speed it up. After many hours, even  
after merge operations are finished, the memory still wasn't  
reclaimed so I am more worried about that.

fyi, from ES logs -  
[2014-02-14 10:09:54,109][WARN][monitor.jvm] [machine1.node2]  
[gc][old][75611][2970] duration [43s], collections [1]/[44.1s], total [43s  
]/[55.5m], memory [11.3gb]-\>[10.6gb]/[11.8gb], all\_pools {[young] [454.6mb  
]-\>[10.4mb]/[865.3mb]}{[survivor] [108.1mb]-\>[0b]/[108.1mb]}{[old] [10.8gb  
]-\>[10.6gb]/[10.9gb]}

And from /\_cluster/stats request -  
"fielddata" : {  
"memory\_size" : "3.6gb",  
"memory\_size\_in\_bytes" : 3881191105,  
"evictions" : 0  
},  
"filter\_cache" : {  
"memory\_size" : "622.4mb",  
"memory\_size\_in\_bytes" : 652677071,  
"evictions" : 0  
},  
"id\_cache" : {  
"memory\_size" : "2gb",  
"memory\_size\_in\_bytes" : 2170019078  
},  
"completion" : {  
"size" : "0b",  
"size\_in\_bytes" : 0  
},  
"segments" : {  
"count" : 789,  
"memory" : "3.4gb",  
"memory\_in\_bytes" : 3730255779  
}

If node is running out of memory, shouldn't ES be reclaiming id\_cache or  
fielddata ?

On Thursday, February 13, 2014 10:19:28 AM UTC-5, Ankush Jhalani wrote:

> We have a single node, 12GB, 16 core ES instance to which we are 12  
> threads bulk indexing into a 12shard index. Each thread sends a request of  
> size kb to couple megabytes. The thread bulk queue\_size is increased from  
> default 50 to 100.
> 
> With v0.90.11, we are noticing that the jvm memory usage keeps growing  
> slowly and doesn't go down, gc runs frequently but doesn't free up much  
> memory. From debug logs, it seems the segment merges are happening. However  
> even after we stop indexing, for many hours the instance is busy doing  
> segment merges. Sample gist from hot threads I ran couple minutes apart - (  
> [Hot threads for a node doing merge segments very slowly · GitHub](https://gist.github.com/ajhalani/8976792)). Even after 16 hours and little  
> use on the machine, the jvm memory usage is about 80% (CMS should run at  
> 75%) and nodes stats show is running very frequently.
> 
> If we don't stop indexing, eventually after 60-70GB indexing the instance  
> goes out of memory. This seems like a memory leak, we didn't face this  
> issue with 0.90.7 (though we were probably using a 6 thread process for  
> bulk indexing).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/99b4d682-5d0d-4255-bf5f-ce0561b111be%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/99b4d682-5d0d-4255-bf5f-ce0561b111be%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Ankush\_Jhalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankush_jhalani/32/875_2.png) [@Ankush\_Jhalani](https://discuss.elastic.co/u/Ankush_Jhalani)
#### Post date: [February 14, 2014, 3:20pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/7 "2014-02-14T15:20:31Z")

</div>

I ran '\_cache/clear' which cleaned up fielddata, id\_cache and jvm memory  
usage dropped ~10.5GB -\> ~5 GB..

Shouldn't ES itself clear up these cache when jvm memory usage becomes  
really high? I see the gc count kept increasing but not a lot of memory was  
reclaimed until I ran \_cache/clear..

On Thursday, February 13, 2014 10:19:28 AM UTC-5, Ankush Jhalani wrote:

> We have a single node, 12GB, 16 core ES instance to which we are 12  
> threads bulk indexing into a 12shard index. Each thread sends a request of  
> size kb to couple megabytes. The thread bulk queue\_size is increased from  
> default 50 to 100.
> 
> With v0.90.11, we are noticing that the jvm memory usage keeps growing  
> slowly and doesn't go down, gc runs frequently but doesn't free up much  
> memory. From debug logs, it seems the segment merges are happening. However  
> even after we stop indexing, for many hours the instance is busy doing  
> segment merges. Sample gist from hot threads I ran couple minutes apart - (  
> [Hot threads for a node doing merge segments very slowly · GitHub](https://gist.github.com/ajhalani/8976792)). Even after 16 hours and little  
> use on the machine, the jvm memory usage is about 80% (CMS should run at  
> 75%) and nodes stats show is running very frequently.
> 
> If we don't stop indexing, eventually after 60-70GB indexing the instance  
> goes out of memory. This seems like a memory leak, we didn't face this  
> issue with 0.90.7 (though we were probably using a 6 thread process for  
> bulk indexing).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f53af0c2-3d30-4059-a044-54213f1a32f3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f53af0c2-3d30-4059-a044-54213f1a32f3%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)
#### Post date: [February 14, 2014, 4:29pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/8 "2014-02-14T16:29:55Z")

</div>

Don't know if this might help, but you can limit the max size of your  
fielddata cache as well as the expiry of the items in that cache:

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-fielddata.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-fielddata.html)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/06cff03b-dd4e-4f5b-84c5-a5112cbe8776%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/06cff03b-dd4e-4f5b-84c5-a5112cbe8776%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Ankush\_Jhalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankush_jhalani/32/875_2.png) [@Ankush\_Jhalani](https://discuss.elastic.co/u/Ankush_Jhalani)
#### Post date: [February 14, 2014, 8:48pm UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/9 "2014-02-14T20:48:18Z")

</div>

It seems I was suspecting wrong process of causing memory issue, it doesn't  
seem to be indexing since issue happened even after we stopped it.  
I found out from '\_cluster/stats' and '\_index/stats' api that one of the  
existing index which is taking most memory -  
"filter\_cache" : {  
"memory\_size" : "252.2mb",  
"memory\_size\_in\_bytes" : 264546840,  
"evictions" : 0  
},  
"id\_cache" : {  
"memory\_size" : "215.4mb",  
"memory\_size\_in\_bytes" : 225963916  
},  
"fielddata" : {  
"memory\_size" : "3.2gb",  
"memory\_size\_in\_bytes" : 3479467264,  
"evictions" : 0  
},  
"completion" : {  
"size" : "0b",  
"size\_in\_bytes" : 0  
},  
"segments" : {  
"count" : 333,  
"memory" : "5.1gb",  
"memory\_in\_bytes" : 5561471705  
}

I think to avoid confusion, I will open a separate thread to ask about it.

On Friday, February 14, 2014 11:29:55 AM UTC-5, Binh Ly wrote:

> Don't know if this might help, but you can limit the max size of your  
> fielddata cache as well as the expiry of the items in that cache:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-fielddata.html)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a9ca91f4-5bca-4dec-89aa-6f9a9cfe80dc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a9ca91f4-5bca-4dec-89aa-6f9a9cfe80dc%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:49am UTC](https://discuss.elastic.co/t/0-90-11-stuck-with-high-memory-usage-during-bulk-indexing-and-even-hours-after-stopping/15779/10 "2017-07-06T01:49:57Z")

</div>


