hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jl...@apache.org
Subject hadoop git commit: YARN-7678. Ability to enable logging of container memory stats. Contributed by Jim Brennan
Date Thu, 04 Jan 2018 16:22:37 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 f2a1d5f3a -> 42964c2a6


YARN-7678. Ability to enable logging of container memory stats. Contributed by Jim Brennan


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/42964c2a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/42964c2a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/42964c2a

Branch: refs/heads/branch-2
Commit: 42964c2a66cfe6d7885c6231a2ec7dbde324eb67
Parents: f2a1d5f
Author: Jason Lowe <jlowe@apache.org>
Authored: Thu Jan 4 10:21:40 2018 -0600
Committer: Jason Lowe <jlowe@apache.org>
Committed: Thu Jan 4 10:21:40 2018 -0600

----------------------------------------------------------------------
 .../containermanager/monitor/ContainersMonitorImpl.java   | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/42964c2a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
index a7ea8cc..cdee800 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
@@ -52,8 +52,10 @@ import java.util.Arrays;
 public class ContainersMonitorImpl extends AbstractService implements
     ContainersMonitor {
 
-  final static Logger LOG =
-       LoggerFactory.getLogger(ContainersMonitorImpl.class);
+  private final static Logger LOG =
+      LoggerFactory.getLogger(ContainersMonitorImpl.class);
+  private final static Logger AUDITLOG =
+      LoggerFactory.getLogger(ContainersMonitorImpl.class.getName()+".audit");
 
   private long monitoringInterval;
   private MonitoringThread monitoringThread;
@@ -498,8 +500,8 @@ public class ContainersMonitorImpl extends AbstractService implements
             long curRssMemUsageOfAgedProcesses = pTree.getRssMemorySize(1);
             long vmemLimit = ptInfo.getVmemLimit();
             long pmemLimit = ptInfo.getPmemLimit();
-            if (LOG.isDebugEnabled()) {
-              LOG.debug(String.format(
+            if (AUDITLOG.isDebugEnabled()) {
+              AUDITLOG.debug(String.format(
                   "Memory usage of ProcessTree %s for container-id %s: ",
                   pId, containerId.toString()) +
                   formatUsageString(


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


Mime
View raw message