I am running elasticsearch 6.8.1 on centos 7. Out of a sudden, elasticsearch service stopped working giving the following error in the elasticsearch.log file. I restarted the service then it is working normally. But how do I avoid this error in future? Is there any settings to turn off this auto update? Thanks in advance.
[2019-07-03T02:11:32,687][WARN ][o.e.c.InternalClusterInfoService] [ZqPNVKY] Failed to update shard information for ClusterInfoUpdateJob within 15s timeout
[2019-07-03T02:11:32,684][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [ZqPNVKY] fatal error in thread [elasticsearch[ZqPNVKY][search][T#2]], exiting
java.lang.OutOfMemoryError: Java heap space
at org.apache.lucene.util.ArrayUtil.growExact(ArrayUtil.java:302) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
You seem to have run out of heap space, so either reduce or optimise how much you use or add more heap to the cluster. If you provide more details on your use case and setup someone might be able to assist, but now there is not much to go on.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.