I have been setting up a ELK server, 16gb ram and a 8core cpu. I have done a basic installation, no extra config on elasticsearch side. Every once in a while elasticsearch seems to break but a fter a restart of the service it function again properly, the messages logs that start tot trigger at the time of break is bellow.
What to do to correct this issue?
org.elasticsearch.index.translog.TranslogException: [logstash-2015.06.12][3] Failed to write operation [org.elasticsearch.index.translog.Translog$Create@781db269]
at org.elasticsearch.index.translog.fs.FsTranslog.add(FsTranslog.java:393)
at org.elasticsearch.index.engine.internal.InternalEngine.innerCreateNoLock(InternalEngine.java:505)
at org.elasticsearch.index.engine.internal.InternalEngine.innerCreate(InternalEngine.java:444)
at org.elasticsearch.index.engine.internal.InternalEngine.create(InternalEngine.java:413)
at org.elasticsearch.index.shard.service.InternalIndexShard.create(InternalIndexShard.java:428)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:437)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:149)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:512)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Java heap space
at org.elasticsearch.common.recycler.DequeRecycler.obtain(DequeRecycler.java:56)
at org.elasticsearch.common.recycler.AbstractRecycler.obtain(AbstractRecycler.java:32)
at org.elasticsearch.common.recycler.DequeRecycler.obtain(DequeRecycler.java:29)
at org.elasticsearch.common.recycler.FilterRecycler.obtain(FilterRecycler.java:39)
at org.elasticsearch.common.recycler.Recyclers$5.obtain(Recyclers.java:161)
at org.elasticsearch.common.recycler.FilterRecycler.obtain(FilterRecycler.java:39)
at org.elasticsearch.cache.recycler.PageCacheRecycler.bytePage(PageCacheRecycler.java:177)
at org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:453)
at org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:466)
at org.elasticsearch.common.io.stream.BytesStreamOutput.<init>(BytesStreamOutput.java:60)
at org.elasticsearch.common.io.stream.ReleasableBytesStreamOutput.<init>(ReleasableBytesStreamOutput.java:37)
at org.elasticsearch.index.translog.fs.FsTranslog.add(FsTranslog.java:371)
... 11 more