YARN-3424. Change logs for ContainerMonitorImpl's resourse monitoring from info to debug. Contributed by Anubhav Dhoot.

This commit is contained in:
Tsuyoshi Ozawa 2015-04-01 17:44:25 +09:00
parent 2daa478a64
commit c69ba81497
2 changed files with 11 additions and 5 deletions

View File

@ -91,6 +91,9 @@ Release 2.8.0 - UNRELEASED
YARN-3428. Debug log resources to be localized for a container. (kasha)
YARN-3424. Change logs for ContainerMonitorImpl's resourse monitoring
from info to debug. (Anubhav Dhoot via ozawa)
OPTIMIZATIONS
YARN-3339. TestDockerContainerExecutor should pull a single image and not

View File

@ -455,11 +455,14 @@ public class ContainersMonitorImpl extends AbstractService implements
long curRssMemUsageOfAgedProcesses = pTree.getRssMemorySize(1);
long vmemLimit = ptInfo.getVmemLimit();
long pmemLimit = ptInfo.getPmemLimit();
LOG.info(String.format(
"Memory usage of ProcessTree %s for container-id %s: ",
pId, containerId.toString()) +
formatUsageString(
currentVmemUsage, vmemLimit, currentPmemUsage, pmemLimit));
if (LOG.isDebugEnabled()) {
LOG.debug(String.format(
"Memory usage of ProcessTree %s for container-id %s: ",
pId, containerId.toString()) +
formatUsageString(
currentVmemUsage, vmemLimit,
currentPmemUsage, pmemLimit));
}
// Add usage to container metrics
if (containerMetricsEnabled) {