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

Profiler servlet

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      HIVE-20202 describes how Hive added a web endpoint for online in production profiling based on async-profiler. The endpoint was added as a servlet to httpserver and supports retrieval of flamegraphs compiled from the profiler trace. Async profiler (https://github.com/jvm-profiling-tools/async-profiler ) can also profile heap allocations, lock contention, and HW performance counters in addition to CPU.

      The profiling overhead is pretty low and is safe to run in production. The async-profiler project measured and describes CPU and memory overheads on these issues: https://github.com/jvm-profiling-tools/async-profiler/issues/14 and https://github.com/jvm-profiling-tools/async-profiler/issues/131 

      We have an httpserver based servlet stack so we can use HIVE-20202 as an implementation template for a similar feature for HBase daemons. Ideally we achieve these requirements:

      • Retrieve flamegraph SVG generated from latest profile trace.
      • Online enable and disable of profiling activity. (async-profiler does not do instrumentation based profiling so this should not cause the code gen related perf problems of that other approach and can be safely toggled on and off while under production load.)
      • CPU profiling.
      • ALLOCATION profiling.

       

      Attachments

        1. HBASE-21926-branch-1.patch
          Delete this attachment
          35 kB
          Andrew Kyle Purtell
        2. HBASE-21926-branch-1.patch
          Delete this attachment
          39 kB
          Andrew Kyle Purtell
        3. HBASE-21926-branch-1.patch
          Delete this attachment
          39 kB
          Andrew Kyle Purtell
        4. HBASE-21926-branch-1.patch
          Delete this attachment
          40 kB
          Andrew Kyle Purtell
        5. HBASE-21926.patch
          Delete this attachment
          28 kB
          Andrew Kyle Purtell
        6. HBASE-21926.patch
          Delete this attachment
          32 kB
          Andrew Kyle Purtell
        7. HBASE-21926.patch
          Delete this attachment
          32 kB
          Andrew Kyle Purtell
        8. HBASE-21926.patch
          Delete this attachment
          33 kB
          Andrew Kyle Purtell
        9. 4.png
          Delete this attachment
          158 kB
          Andrew Kyle Purtell
        10. 3.png
          Delete this attachment
          35 kB
          Andrew Kyle Purtell
        11. 2.png
          Delete this attachment
          30 kB
          Andrew Kyle Purtell
        12. 1.png
          Delete this attachment
          71 kB
          Andrew Kyle Purtell

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            apurtell Andrew Kyle Purtell Assign to me
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            20 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment