HBase
  1. HBase
  2. HBASE-5912

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 0.94.1
    • Fix Version/s: None
    • Component/s: IPC/RPC, Performance
    • Labels:
      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.

      1. hbase-5912.txt
        2 kB
        Todd Lipcon

        Activity

          People

          • Assignee:
            Todd Lipcon
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development