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

kafka-topics.cmd OOM when connecting to a secure cluster without SSL properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.2.1
    • None
    • tools
    • None
    • Windows 7

      openjdk version "1.8.0_212-1-ojdkbuild"
      OpenJDK Runtime Environment (build 1.8.0_212-1-ojdkbuild-b04)
      OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

    Description

      When using kafka-topics.cmd to connect to an SSL secured cluster, without specifying '--command-config=my-ssl.properties' an OOM is triggered:

       

      [2019-06-20 14:25:07,998] ERROR Uncaught exception in thread 'kafka-admin-client-thread | adminclient-1': (org.apache.kafka.common.utils.KafkaThread)
      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.memory.MemoryPool$1.tryAllocate(MemoryPool.java:30)
      at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:112)
      at org.apache.kafka.common.network.KafkaChannel.receive(KafkaChannel.java:424)
      at org.apache.kafka.common.network.KafkaChannel.read(KafkaChannel.java:385)
      at org.apache.kafka.common.network.Selector.attemptRead(Selector.java:651)
      at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:572)
      at org.apache.kafka.common.network.Selector.poll(Selector.java:483)
      at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:535)
      at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.run(KafkaAdminClient.java:1131)
      at java.lang.Thread.run(Thread.java:748)

       

      Attachments

        Issue Links

          Activity

            People

              akumar Ankit Kumar
              heymjo Jorg Heymans
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: