Java heap space on Rasp 3 : Elast 5.6.4

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

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

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

1 Like

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

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