java.lang.OutOfMemoryError: Java heap space

JIRA | Joel Barciauskas | 5 years ago
  1. 0

    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

    JIRA | 5 years ago | Joel Barciauskas
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    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

    JIRA | 5 years ago | Joel Barciauskas
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    Issue with logstash not crashing when OOME occurs

    Google Groups | 5 years ago | Joel Barciauskas
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  6. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.elasticsearch.common.compress.lzf.BufferRecycler.allocOutputBuffer()
    2. ElasticSearch
      InternalClusterService$2.run
      1. org.elasticsearch.common.compress.lzf.BufferRecycler.allocOutputBuffer(BufferRecycler.java:96)
      2. org.elasticsearch.common.io.stream.LZFStreamOutput.<init>(LZFStreamOutput.java:60)
      3. org.elasticsearch.common.io.stream.CachedStreamOutput.newEntry(CachedStreamOutput.java:37)
      4. org.elasticsearch.common.io.stream.CachedStreamOutput.popEntry(CachedStreamOutput.java:118)
      5. org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:456)
      6. org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:181)
      7. org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:168)
      8. org.elasticsearch.cluster.action.index.NodeAliasesUpdatedAction.nodeAliasesUpdated(NodeAliasesUpdatedAction.java:89)
      9. org.elasticsearch.indices.cluster.IndicesClusterStateService.applyAliases(IndicesClusterStateService.java:437)
      10. org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:172)
      11. org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:271)
      11 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:636)
      3 frames