Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-582

DumpLogSegments throws java.lang.OutOfMemoryError: Java heap space

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This is happening in rev. 1401874

      bin/kafka-run-class.sh kafka.tools.DumpLogSegments --no-print replica_1_p_0/00000000000000000000.log
      Dumping replica_1_p_0/00000000000000000000.log
      Starting offset: 0
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
      at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
      at kafka.log.FileMessageSet$$anon$1.makeNext(FileMessageSet.scala:123)
      at kafka.log.FileMessageSet$$anon$1.makeNext(FileMessageSet.scala:106)
      at kafka.utils.IteratorTemplate.maybeComputeNext(IteratorTemplate.scala:61)
      at kafka.utils.IteratorTemplate.hasNext(IteratorTemplate.scala:53)
      at scala.collection.Iterator$class.foreach(Iterator.scala:631)
      at kafka.utils.IteratorTemplate.foreach(IteratorTemplate.scala:32)
      at scala.collection.IterableLike$class.foreach(IterableLike.scala:79)
      at kafka.message.MessageSet.foreach(MessageSet.scala:67)
      at kafka.tools.DumpLogSegments$.dumpLog(DumpLogSegments.scala:62)
      at kafka.tools.DumpLogSegments$$anonfun$main$1.apply(DumpLogSegments.scala:35)
      at kafka.tools.DumpLogSegments$$anonfun$main$1.apply(DumpLogSegments.scala:31)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34)
      at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:34)
      at kafka.tools.DumpLogSegments$.main(DumpLogSegments.scala:31)
      at kafka.tools.DumpLogSegments.main(DumpLogSegments.scala)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jfung John Fung
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: