rbalamohan commented on a change in pull request #157:
URL: https://github.com/apache/tez/pull/157#discussion_r735219708



##########
File path: 
tez-runtime-internals/src/main/java/org/apache/tez/runtime/task/TaskReporter.java
##########
@@ -83,6 +85,7 @@
   private final String containerIdStr;
 
   private final ListeningExecutorService heartbeatExecutor;
+  private static final MemoryUsage heapMemoryUsage = 
ManagementFactory.getMemoryMXBean().getHeapMemoryUsage();

Review comment:
       Default task->am interval is around 100ms. So this may be invoked ~10 
times in a second. i.e 10 calls per second. Check if that is absolutely needed, 
or you could refresh this every 5 second.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to