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

CPU wasted on reflection calls initializing short-lived loggers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0.1
    • 0.10.2.0
    • None
    • None

    Description

      an internal profiling run at linkedin found ~5% of the CPU time consumed by `sun.reflect.Reflection.getCallerClass()`.

      digging into the stack trace shows its from initializing short lived logger objects in `FileMessageSet` and `RequestChannel.Request`

      Attachments

        Issue Links

          Activity

            People

              radai Radai Rosenblatt
              radai Radai Rosenblatt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: