Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15067

GC time percentage reported in JvmMetrics should be a gauge, not counter

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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.10.0
    • None
    • None
    • Reviewed

    Description

      A new GcTimeMonitor class has been recently added, and the corresponding metrics added in JvmMetrics.java, line 190:

          if (gcTimeMonitor != null) {
            rb.addCounter(GcTimePercentage,
                gcTimeMonitor.getLatestGcData().getGcTimePercentage());
          }
      

      Since GC time percentage can go up and down, a gauge rather than counter should be used to report it. That is, addCounter should be replaced with addGauge above.

      Attachments

        Issue Links

        Activity

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

          People

            misha@cloudera.com Misha Dmitriev Assign to me
            misha@cloudera.com Misha Dmitriev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment