Skip to content

Commit d4950e6

Browse files
committed
[SPARK-54832][UI] Spark executor page show driver gc times
1 parent e316d28 commit d4950e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/scala/org/apache/spark/status/AppStatusListener.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,10 @@ private[spark] class AppStatusListener(
961961
event.executorUpdates.foreach { case (key, peakUpdates) =>
962962
liveExecutors.get(event.execId).foreach { exec =>
963963
if (exec.peakExecutorMetrics.compareAndUpdatePeakValues(peakUpdates)) {
964+
if (exec.executorId == "driver") {
965+
exec.totalGcTime = exec.peakExecutorMetrics.getMetricValue("MinorGCTime") +
966+
exec.peakExecutorMetrics.getMetricValue("MajorGCTime")
967+
}
964968
update(exec, now)
965969
}
966970
}

0 commit comments

Comments
 (0)