Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5912

org.apache.hadoop.hbase.ipc.ProtocolSignature.getFingerprint takes significant CPU

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.94.1
    • None
    • IPC/RPC, Performance
    • None

    Description

      I ran oprofile on a YCSB client and found that a large percentage of the CPU time was going to this function:

      51991 0.4913 25361.jo java java.lang.reflect.Method[] java.lang.Class.copyMethods(java.lang.reflect.Method[])
      51384 0.4856 25361.jo java int org.apache.hadoop.hbase.ipc.ProtocolSignature.getFingerprint(java.lang.reflect.Method)
      50428 0.4766 25361.jo java void java.util.Arrays.sort1(int[], int, int)

      We should introduce a simple cache to avoid this overhead.

      Attachments

        1. hbase-5912.txt
          2 kB
          Todd Lipcon

        Activity

          People

            Unassigned Unassigned
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: