java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Currently, when the elasticsearch process runs out of memory (due to high number of maximum inflight requests), the agent keeps running. Since I run collectors using supervisor, it would be better if the agent died so supervisor could restart it. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "elasticsearch[Gregory Gideon]clusterService#updateTask-pool-11-thread-1" java.lang.OutOfMemoryError: Java heap space at org.elasticsearch.common.compress.lzf.BufferRecycler.allocOutputBuffer(BufferRecycler.java:96) at org.elasticsearch.common.io.stream.LZFStreamOutput.<init>(LZFStreamOutput.java:60) at org.elasticsearch.common.io.stream.CachedStreamOutput.newEntry(CachedStreamOutput.java:37) at org.elasticsearch.common.io.stream.CachedStreamOutput.popEntry(CachedStreamOutput.java:118) at org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:456) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:181) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:168) at org.elasticsearch.cluster.action.index.NodeAliasesUpdatedAction.nodeAliasesUpdated(NodeAliasesUpdatedAction.java:89) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyAliases(IndicesClusterStateService.java:437) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:172) at org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Exception in thread "filter|worker|0" java.lang.OutOfMemoryError: Java heap space Exception in thread "elasticsearch[cached]-pool-1-thread-8" java.lang.OutOfMemoryError: Java heap space Exception in thread "elasticsearch[cached]-pool-1-thread-32421" java.lang.OutOfMemoryError: GC overhead limit exceeded Exception in thread "input|LogStash::Inputs::Amqp: {...}" java.lang.OutOfMemoryError: GC overhead limit exceeded
    via by Joel Barciauskas,
  • Currently, when the elasticsearch process runs out of memory (due to high number of maximum inflight requests), the agent keeps running. Since I run collectors using supervisor, it would be better if the agent died so supervisor could restart it. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "elasticsearch[Gregory Gideon]clusterService#updateTask-pool-11-thread-1" java.lang.OutOfMemoryError: Java heap space at org.elasticsearch.common.compress.lzf.BufferRecycler.allocOutputBuffer(BufferRecycler.java:96) at org.elasticsearch.common.io.stream.LZFStreamOutput.<init>(LZFStreamOutput.java:60) at org.elasticsearch.common.io.stream.CachedStreamOutput.newEntry(CachedStreamOutput.java:37) at org.elasticsearch.common.io.stream.CachedStreamOutput.popEntry(CachedStreamOutput.java:118) at org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:456) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:181) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:168) at org.elasticsearch.cluster.action.index.NodeAliasesUpdatedAction.nodeAliasesUpdated(NodeAliasesUpdatedAction.java:89) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyAliases(IndicesClusterStateService.java:437) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:172) at org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Exception in thread "filter|worker|0" java.lang.OutOfMemoryError: Java heap space Exception in thread "elasticsearch[cached]-pool-1-thread-8" java.lang.OutOfMemoryError: Java heap space Exception in thread "elasticsearch[cached]-pool-1-thread-32421" java.lang.OutOfMemoryError: GC overhead limit exceeded Exception in thread "input|LogStash::Inputs::Amqp: {...}" java.lang.OutOfMemoryError: GC overhead limit exceeded
    via by Joel Barciauskas,
  • Issue with logstash not crashing when OOME occurs
    via by Joel Barciauskas,
    • java.lang.OutOfMemoryError: Java heap space at org.elasticsearch.common.compress.lzf.BufferRecycler.allocOutputBuffer(BufferRecycler.java:96) at org.elasticsearch.common.io.stream.LZFStreamOutput.<init>(LZFStreamOutput.java:60) at org.elasticsearch.common.io.stream.CachedStreamOutput.newEntry(CachedStreamOutput.java:37) at org.elasticsearch.common.io.stream.CachedStreamOutput.popEntry(CachedStreamOutput.java:118) at org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:456) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:181) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:168) at org.elasticsearch.cluster.action.index.NodeAliasesUpdatedAction.nodeAliasesUpdated(NodeAliasesUpdatedAction.java:89) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyAliases(IndicesClusterStateService.java:437) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:172) at org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)
    No Bugmate found.