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

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

    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

        1. HADOOP-15067.01.patch
          2 kB
          Misha Dmitriev

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: