You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by GitBox <gi...@apache.org> on 2021/10/26 09:07:32 UTC

[GitHub] [tez] abstractdog commented on a change in pull request #157: TEZ-4339: Expose real-time memory consumption of AM and task containers via DagClient

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



##########
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:
       oh, makes sense, I'll get only memoryMXBean in advance
   I haven't realized heartbeat happens so often, I'll simply make it query the actual memory in every n seconds




-- 
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: issues-unsubscribe@tez.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org