cloud-fan commented on a change in pull request #33696:
URL: https://github.com/apache/spark/pull/33696#discussion_r686647184
##########
File path: core/src/main/scala/org/apache/spark/metrics/ExecutorMetricType.scala
##########
@@ -177,6 +177,16 @@ case object OnHeapUnifiedMemory extends
MemoryManagerExecutorMetricType(
case object OffHeapUnifiedMemory extends MemoryManagerExecutorMetricType(
(m => m.offHeapExecutionMemoryUsed + m.offHeapStorageMemoryUsed))
+case object OnHeapUnUnifiedMemory extends MemoryManagerExecutorMetricType(
+ (m => ManagementFactory.getMemoryMXBean.getHeapMemoryUsage().getUsed()
Review comment:
is there any document to prove this can return the used JVM 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]