<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to monitor yarn applications actual memory usage in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-monitor-yarn-applications-actual-memory-usage/m-p/133688#M39576</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I would like to monitor the actual memory usage of the yarn containers in our cluster. We are using defaults such as &lt;/P&gt;&lt;P&gt;mapreduce.map.memory.mb=X;&lt;/P&gt;&lt;P&gt;mapreduce.reduce.memory.mb=Y;&lt;/P&gt;&lt;P&gt;But if I have understood this correctly, these values are only used to determine the maximum limit for processes running inside the containers. Is it possible to get metrics out from yarn about the actual memory usage of the process that ran in a container?&lt;/P&gt;&lt;P&gt;It looks like something like this was implemented in &lt;A href="https://issues.apache.org/jira/browse/YARN-2984" target="_blank"&gt;https://issues.apache.org/jira/browse/YARN-2984&lt;/A&gt; but I'm not sure how I can access that data.&lt;/P&gt;&lt;P&gt;Can you give me any tips regarding this?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;/Thomas&lt;/P&gt;&lt;P&gt;Added:&lt;/P&gt;&lt;P&gt;I can see what I'm looking for in the nodemanager logs so I guess those logs could be harvested and analyzed. Any other tips&lt;/P&gt;&lt;P&gt;Example of nodemanager log:&lt;/P&gt;&lt;PRE&gt;2016-09-02 13:31:58,563 INFO  monitor.ContainersMonitorImpl (ContainersMonitorImpl.java:run(408)) - Memory usage of ProcessTree 50811 for container-id container_e21_1472110676349_75100_01_006278: 668.7 MB of 2.5 GB physical memory used; 2.9 GB of 5.3 GB virtual memory used&lt;/PRE&gt;</description>
    <pubDate>Fri, 02 Sep 2016 20:23:49 GMT</pubDate>
    <dc:creator>ThomasLarsson</dc:creator>
    <dc:date>2016-09-02T20:23:49Z</dc:date>
    <item>
      <title>How to monitor yarn applications actual memory usage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-monitor-yarn-applications-actual-memory-usage/m-p/133688#M39576</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I would like to monitor the actual memory usage of the yarn containers in our cluster. We are using defaults such as &lt;/P&gt;&lt;P&gt;mapreduce.map.memory.mb=X;&lt;/P&gt;&lt;P&gt;mapreduce.reduce.memory.mb=Y;&lt;/P&gt;&lt;P&gt;But if I have understood this correctly, these values are only used to determine the maximum limit for processes running inside the containers. Is it possible to get metrics out from yarn about the actual memory usage of the process that ran in a container?&lt;/P&gt;&lt;P&gt;It looks like something like this was implemented in &lt;A href="https://issues.apache.org/jira/browse/YARN-2984" target="_blank"&gt;https://issues.apache.org/jira/browse/YARN-2984&lt;/A&gt; but I'm not sure how I can access that data.&lt;/P&gt;&lt;P&gt;Can you give me any tips regarding this?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;/Thomas&lt;/P&gt;&lt;P&gt;Added:&lt;/P&gt;&lt;P&gt;I can see what I'm looking for in the nodemanager logs so I guess those logs could be harvested and analyzed. Any other tips&lt;/P&gt;&lt;P&gt;Example of nodemanager log:&lt;/P&gt;&lt;PRE&gt;2016-09-02 13:31:58,563 INFO  monitor.ContainersMonitorImpl (ContainersMonitorImpl.java:run(408)) - Memory usage of ProcessTree 50811 for container-id container_e21_1472110676349_75100_01_006278: 668.7 MB of 2.5 GB physical memory used; 2.9 GB of 5.3 GB virtual memory used&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Sep 2016 20:23:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-monitor-yarn-applications-actual-memory-usage/m-p/133688#M39576</guid>
      <dc:creator>ThomasLarsson</dc:creator>
      <dc:date>2016-09-02T20:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor yarn applications actual memory usage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-monitor-yarn-applications-actual-memory-usage/m-p/133689#M39577</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1954/thomaslarsson.html"&gt;Thomas Larsson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Resource Manager UI. You can get to it in two ways: http:/hostname:8088, where hostname is the host name of the server where Resource Manager service runs. Otherwise, from Ambari UI click on YARN (left bar) then click on Quick Links at top middle, then select Resource Manager. You will see the memory and CPU used for each container. One container is allocated to a task.&lt;/P&gt;&lt;P&gt;Good tutorial here: &lt;A href="http://hadooptutorial.info/yarn-web-ui/" target="_blank"&gt;http://hadooptutorial.info/yarn-web-ui/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the visual. You could also build your own Grafana dashboard making calls to the REST API: &lt;A href="https://hadoop.apache.org/docs/r2.7.0/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.0/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please don't forget to vote/accept best answer for your question.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 07:03:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-monitor-yarn-applications-actual-memory-usage/m-p/133689#M39577</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-09-03T07:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor yarn applications actual memory usage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-monitor-yarn-applications-actual-memory-usage/m-p/133690#M39578</link>
      <description>&lt;P&gt;SmartSense provides this information (and much more than this) for every job.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 23:54:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-monitor-yarn-applications-actual-memory-usage/m-p/133690#M39578</guid>
      <dc:creator>sheetal</dc:creator>
      <dc:date>2017-08-18T23:54:00Z</dc:date>
    </item>
  </channel>
</rss>

