huangxiaopingRD commented on code in PR #53748:
URL: https://github.com/apache/spark/pull/53748#discussion_r2679102641
##########
core/src/main/java/org/apache/spark/memory/TaskMemoryManager.java:
##########
@@ -401,6 +401,7 @@ private MemoryBlock allocatePage(
logger.warn("Failed to allocate a page ({} bytes) for {} times, try
again.", e,
MDC.of(LogKeys.PAGE_SIZE, acquired),
MDC.of(LogKeys.NUM_RETRY, retryCount));
+ showMemoryUsage();
Review Comment:
Yes, this should happen if the `taskMemoryManager.allocatePage` method
returns. But in our production environment, `allocatePage` keeps throwing
OutOfMemoryError (OOM), causing recursive calls to `allocatePage`, eventually
leading to the Executor exiting abnormally without entering the `throwOOM`
method.
--
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]