Kafka
  1. Kafka
  2. KAFKA-582

DumpLogSegments throws java.lang.OutOfMemoryError: Java heap space

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker 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)

        Activity

        Hide
        John Fung added a comment -

        Looks like this is a mistake I made in merging the log segment files. So mark this Not an issue

        Show
        John Fung added a comment - Looks like this is a mistake I made in merging the log segment files. So mark this Not an issue

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development