qiaojizhen commented on code in PR #53383:
URL: https://github.com/apache/spark/pull/53383#discussion_r2850586274


##########
core/src/main/scala/org/apache/spark/status/AppStatusListener.scala:
##########
@@ -884,7 +884,11 @@ private[spark] class AppStatusListener(
     exec.hostPort = event.blockManagerId.hostPort
     event.maxOnHeapMem.foreach { _ =>
       exec.totalOnHeap = event.maxOnHeapMem.get
-      exec.totalOffHeap = event.maxOffHeapMem.get
+      if (event.blockManagerId.executorId == SparkContext.DRIVER_IDENTIFIER) {
+        exec.totalOffHeap = 0

Review Comment:
   @holdenk @VindhyaG 
   In the cluster deployment mode, it is indeed so. In local mode, the Driver 
still uses off heap memory. But I think it will be ok to display zero for the 
Drvier off heap memory!



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to