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

Clients retain metadata for non-subscribed topics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.0.1, 0.10.0.0
    • None
    • clients
    • None

    Description

      After upgrading to 0.9.0.1 from 0.8.2 (and adopting the new consumer and producer classes,) we noticed services with small heap crashing due to OutOfMemoryErrors. These services contained many producers and consumers (~20 total) and were connected to brokers with >2000 topics and over 10k partitions. Heap dumps revealed that each client had 3.3MB of Metadata retained in their Cluster, with references to topics that were not being produced or subscribed to. While the services were running with 128MB of heap prior to the upgrade, we to had increased max heap to 200MB to accommodate all the extra data.

      While this is not technically a memory leak, it does impose a significant overhead on clients when connected to a large cluster.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iamnoah Noah Sloan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: