java.lang.OutOfMemoryError: Java heap space

Stack Overflow | user5447339 | 1 month ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Kafka + Spark Streaming: ClosedChannelException

    Stack Overflow | 6 months ago | Amna
    java.nio.channels.ClosedChannelException
  2. 0

    How can we run multiple kafka consumers through command line?

    Stack Overflow | 1 month ago | user5447339
    java.lang.OutOfMemoryError: Java heap space
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    0.8 kafka-console-consumer.sh OOM, is this a known issue or user error?

    Stack Overflow | 10 months ago | Ed D.
    java.lang.OutOfMemoryError: Java heap space

  1. rp 1 times, last 2 months ago
  2. rexgreenza 1 times, last 6 months ago
13 unregistered visitors
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 java.nio.HeapByteBuffer.<init>()
  2. Java RT
    ByteBuffer.allocate
    1. java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
    2. java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
    2 frames
  3. Apache Kafka
    NetworkReceive.readFromReadableChannel
    1. org.apache.kafka.common.network.NetworkReceive.readFromReadableChannel(NetworkReceive.java:93)
    1 frame
  4. Apache Kafka
    ShutdownableThread.run
    1. kafka.network.BlockingChannel.readCompletely(BlockingChannel.scala:129)
    2. kafka.network.BlockingChannel.receive(BlockingChannel.scala:120)
    3. kafka.consumer.SimpleConsumer.liftedTree1$1(SimpleConsumer.scala:99)
    4. kafka.consumer.SimpleConsumer.kafka$consumer$SimpleConsumer$$sendRequest(SimpleConsumer.scala:83)
    5. kafka.consumer.SimpleConsumer$$anonfun$fetch$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(SimpleConsumer.scala:132)
    6. kafka.consumer.SimpleConsumer$$anonfun$fetch$1$$anonfun$apply$mcV$sp$1.apply(SimpleConsumer.scala:132)
    7. kafka.consumer.SimpleConsumer$$anonfun$fetch$1$$anonfun$apply$mcV$sp$1.apply(SimpleConsumer.scala:132)
    8. kafka.metrics.KafkaTimer.time(KafkaTimer.scala:33)
    9. kafka.consumer.SimpleConsumer$$anonfun$fetch$1.apply$mcV$sp(SimpleConsumer.scala:131)
    10. kafka.consumer.SimpleConsumer$$anonfun$fetch$1.apply(SimpleConsumer.scala:131)
    11. kafka.consumer.SimpleConsumer$$anonfun$fetch$1.apply(SimpleConsumer.scala:131)
    12. kafka.metrics.KafkaTimer.time(KafkaTimer.scala:33)
    13. kafka.consumer.SimpleConsumer.fetch(SimpleConsumer.scala:130)
    14. kafka.consumer.ConsumerFetcherThread.fetch(ConsumerFetcherThread.scala:109)
    15. kafka.consumer.ConsumerFetcherThread.fetch(ConsumerFetcherThread.scala:29)
    16. kafka.server.AbstractFetcherThread.processFetchRequest(AbstractFetcherThread.scala:118)
    17. kafka.server.AbstractFetcherThread.doWork(AbstractFetcherThread.scala:103)
    18. kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:63)
    18 frames