YARN-7678. Ability to enable logging of container memory stats. Contributed by Jim Brennan
(cherry picked from commit d795661868e330ac55d6ac7b0ee62fb658e03ff7)
This commit is contained in:
parent
91b59b7c28
commit
c155d8e756
@ -58,6 +58,8 @@ public class ContainersMonitorImpl extends AbstractService implements
|
||||
|
||||
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;
|
||||
@ -582,8 +584,8 @@ private void recordUsage(ContainerId containerId, String pId,
|
||||
* maxVCoresAllottedForContainers /nodeCpuPercentageForYARN);
|
||||
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user