# Java heap space on Rasp 3 : Elast 5.6.4

**URL:** <https://discuss.elastic.co/t/java-heap-space-on-rasp-3-elast-5-6-4/127304>\
**Category:** Elasticsearch\
**Created:** [April 9, 2018, 10:33am UTC](https://discuss.elastic.co/t/java-heap-space-on-rasp-3-elast-5-6-4/127304 "2018-04-09T10:33:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruno-d](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@bruno-d](https://discuss.elastic.co/u/bruno-d)\
**Post date:** [April 9, 2018, 10:33am UTC](https://discuss.elastic.co/t/java-heap-space-on-rasp-3-elast-5-6-4/127304/1 "2018-04-09T10:33:05Z")

</div>

Hi , i have a RPI3 who ran from 4 months like a charm and from couple days it reboots every 20min.... i am using version 5.6.4.

/usr/bin/java -Xms540m -Xmx540m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/opt/elasticsearch -cp /opt/elasticsearch/lib/\* org.elasticsearch.bootstrap.Elasticsearch

[2018-04-09T19:11:58,954][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [bruno-1] fatal error in thread [elasticsearch[bruno-1][generic][T#4]], exiting  
java.lang.OutOfMemoryError: Java heap space  
at org.apache.lucene.util.ByteBlockPool$DirectTrackingAllocator.getByteBlock(ByteBlockPool.java:103) ~[lucene-core-6.6.1.jar:6.6.1 9aa465a89b64ff2dabe7b4d50c472de32c298683 - varunthacker - 2017-08-29 21:54:39]  
at org.apache.lucene.util.ByteBlockPool.nextBuffer(ByteBlockPool.java:203) ~[lucene-core-6.6.1.jar:6.6.1 9aa465a89b64ff2dabe7b4d50c472de32c298683 - varunthacker - 2017-08-29 21:54:39]  
at org.apache.lucene.util.ByteBlockPool.allocSlice(ByteBlockPool.java:258) ~[lucene-core-6.6.1.jar:6.6.1 9aa465a89b64ff2dabe7b4d50c472de32c298683 - varunthacker - 2017-08-29 21:54:39]  
at org.apache.lucene.index.TermsHashPerField.writeByte(TermsHashPerField.java:201) ~[lucene-core-6.6.1.jar:6.6.1 9aa465a89b64ff2dabe7b4d50c472de32c298683 - varunthacker - 2017-08-29 21:54:39]  
at org.apache.lucene.index.TermsHashPerField.writeVInt(TermsHashPerField.java:219) ~[lucene-core-6.6.1.jar:6.6.1 9aa465a89b64ff2dabe7b4d50c472de32c298683 - varunthacker - 2017-08-29 21:54:39]  
at org.apache.lucene.index.FreqProxTermsWriterPerField.writeProx(FreqProxTermsWriterPerField.java:80) ~[lucene-core-6.6.1.jar:6.6.1 9aa465a89b64ff2dabe7b4d50c472de32c298683 - varunthacker - 2017-08-29 21:54:39]

Elastisearch conf is  
1 node :  
bootstrap.memory\_lock: true  
thread\_pool.index.queue\_size: 1000  
xpack.ml.enabled: false  
action.auto\_create\_index: true  
xpack.monitoring.enabled: false  
xpack.security.enabled: false

any tips ? thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 9, 2018, 10:36am UTC](https://discuss.elastic.co/t/java-heap-space-on-rasp-3-elast-5-6-4/127304/2 "2018-04-09T10:36:53Z")

</div>

How many indices and shards do you have on the node now?

> [@bruno-d](#):
>
> thread\_pool.index.queue\_size: 1000

Why have you overridden this if you are running in an environment with limited memory?

---

<div class="post-metadata">

**Author:** ![bruno-d](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@bruno-d](https://discuss.elastic.co/u/bruno-d)\
**Post date:** [April 10, 2018, 9:09am UTC](https://discuss.elastic.co/t/java-heap-space-on-rasp-3-elast-5-6-4/127304/3 "2018-04-10T09:09:45Z")

</div>

Hi Christian, thanks i suppress this line that appears froma while per dummies copy/paste.  
It's running again like a charm.🤩

---

<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:** [May 8, 2018, 9:09am UTC](https://discuss.elastic.co/t/java-heap-space-on-rasp-3-elast-5-6-4/127304/4 "2018-05-08T09:09:46Z")

</div>

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