hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Misha Dmitriev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-15067) GC time percentage reported in JvmMetrics should be a gauge, not counter
Date Wed, 22 Nov 2017 19:42:00 GMT
Misha Dmitriev created HADOOP-15067:
---------------------------------------

             Summary: GC time percentage reported in JvmMetrics should be a gauge, not counter
                 Key: HADOOP-15067
                 URL: https://issues.apache.org/jira/browse/HADOOP-15067
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Misha Dmitriev


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

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

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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message