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

Calling kaka-consumer-group.sh to get the consumer offset throws OOM with heap space error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.10.1.0
    • Fix Version/s: None
    • Component/s: admin
    • Labels:
      None

      Description

      Command -->
      bin/kafka-consumer-groups.sh --bootstrap-server broker1:9092,broker2:9092,broker3:9092 --describe --group testgroups

      Error
      ---------------------------------
      java.lang.OutOfMemoryError: Java heap space
      at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
      at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
      at org.apache.kafka.common.network.NetworkReceive.readFromReadableChannel(NetworkReceive.java:93)
      at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:71)
      at org.apache.kafka.common.network.KafkaChannel.receive(KafkaChannel.java:154)
      at org.apache.kafka.common.network.KafkaChannel.read(KafkaChannel.java:135)
      at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:343)
      at org.apache.kafka.common.network.Selector.poll(Selector.java:291)
      at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:260)
      at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:232)
      at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:180)
      at kafka.admin.AdminClient.kafka$admin$AdminClient$$send(AdminClient.scala:49)
      at kafka.admin.AdminClient$$anonfun$sendAnyNode$1.apply(AdminClient.scala:61)
      at kafka.admin.AdminClient$$anonfun$sendAnyNode$1.apply(AdminClient.scala:58)
      at scala.collection.immutable.List.foreach(List.scala:381)
      at kafka.admin.AdminClient.sendAnyNode(AdminClient.scala:58)
      at kafka.admin.AdminClient.findCoordinator(AdminClient.scala:72)
      at kafka.admin.AdminClient.describeGroup(AdminClient.scala:125)
      at kafka.admin.AdminClient.describeConsumerGroup(AdminClient.scala:147)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService.describeGroup(ConsumerGroupCommand.scala:308)
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$class.describe(ConsumerGroupCommand.scala:89)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService.describe(ConsumerGroupCommand.scala:296)
      at kafka.admin.ConsumerGroupCommand$.main(ConsumerGroupCommand.scala:68)
      at kafka.admin.ConsumerGroupCommand.main(ConsumerGroupCommand.scala)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                trao T Rao
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: