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

MetricsDynamicMBeanBase can cause high cpu load

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.2
    • Fix Version/s: 1.0.0, 0.23.0
    • Component/s: metrics
    • Labels:
      None
    • Environment:

      cdh3u4

      Description

      I noticed high load on some of our Hadoop services. On closer inspection we found several threads that were consuming cpu (80-90% of a core) doing :

      java.lang.Thread.State: RUNNABLE
      at java.util.HashMap.get(HashMap.java:303)
      at org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase.getAttribute(MetricsDynamicMBeanBase.java:135)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)

      This is a known issue in java when using a non thread safe hash map from multiple threads

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nputnam Nate Putnam
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: