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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.10.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: