Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-12741

AMS Collector process takes way more Virtual memory than Xmx setting

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.2
    • Component/s: ambari-metrics
    • Labels:
      None

      Description

      Ambari Metrics Collector grabs almost whole free memory for VSZ just after start.

       free -g
      
                      total       used       free     shared    buffers     cached
      Mem:            29         14         15          0          0          4
      

      As you can see free mem is 15GB
      AMS Collector process:

      ps -u -p 15921 | awk '{print $0}'
      
      USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
      ams      25954  4.9  7.0 13782216 2167184 ?    Sl   14:00   1:26 /usr/jdk64/jdk1.8.0_40/bin/java -Djava.library.path=/usr/lib/ams-hbase/lib/hadoop-native -Xmx512m  -cp /usr/lib/ambari-metrics-collector/*:/etc/ambari-metrics-collector/conf -Djava.net.preferIPv4Stack=true -Dams.log.dir=/var/log/ambari-metrics-collector -Dproc_timelineserver org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer
      

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #3269 (See https://builds.apache.org/job/Ambari-trunk-Commit/3269/)
          AMBARI-12741 - AMS Collector process takes way more Virtual memory than Xmx setting (abaranchuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9e962270bff7d61625617266eff9789c352b5be2)

          • ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-env.xml
          • ambari-metrics/ambari-metrics-timelineservice/conf/unix/ambari-metrics-collector
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3269 (See https://builds.apache.org/job/Ambari-trunk-Commit/3269/ ) AMBARI-12741 - AMS Collector process takes way more Virtual memory than Xmx setting (abaranchuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9e962270bff7d61625617266eff9789c352b5be2 ) ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-env.xml ambari-metrics/ambari-metrics-timelineservice/conf/unix/ambari-metrics-collector

            People

            • Assignee:
              abaranchuk Artem Baranchuk
              Reporter:
              abaranchuk Artem Baranchuk
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development