I have a problem with a single node elasticsearch instance on a m4.4xlarge with an EBS volume attached and heap size of 8 GB.
Every now and then my elasticsearch service stops with these errors in the logs :
at org.elasticsearch.transport.netty4.Netty4Utils.maybeDie(Netty4Utils.java:138)
at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.exceptionCaught(Netty4HttpRequestHandler.java:76)
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:295)
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:274)
at io.netty.channel.AbstractChannelHandlerContext.fireExceptionCaught(AbstractChannelHandlerContext.java:266)
.
.
.
and right after with :
java.lang.OutOfMemoryError: Java heap space
at io.netty.buffer.PoolArena$HeapArena.newChunk(PoolArena.java:633) ~[?:?]
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:237) ~[?:?]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:221) ~[?:?]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:141) ~[?:?]
.
.
.
But I'm sure it's running with 8GB heap space then technically it shouldn't be out of memory. Searching for the first network issue results in nothing ... looks like not many people had that issue.
Elasticsearch 5 on Amazon AMI (4.4.23-31.54.amzn1.x86_64) and java version "1.7.0_121"
OpenJDK Runtime Environment (amzn-2.6.8.1.69.amzn1-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
According to the support matrix, Elasticsearch 5.0 requires Java 8, so you probably should upgrade that. You should also try to keep the heap size a bit below 32GB in order to be able to benefit from compressed pointers. I think 30 GB should be OK, but it may be possible to push it a bit higher.
Elasticsearch 5 on Amazon AMI (4.4.23-31.54.amzn1.x86_64) and java version "1.7.0_121"
OpenJDK Runtime Environment (amzn-2.6.8.1.69.amzn1-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
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.