wang-zhun commented on issue #28069: [SPARK-31265][YARN] Add 
-XX:MaxDirectMemorySize jvm options in yarn mode
URL: https://github.com/apache/spark/pull/28069#issuecomment-606986075
 
 
   In my opinion memory is mainly composed of two parts:
   1.On-heap(amMemory)
   2.Off-heap(amMemoryOverhead)
   When we don't set `spark.yarn.am.memoryOverhead`, There is also a default 
value `math.max((MEMORY_OVERHEAD_FACTOR * amMemory).toLong, 
MEMORY_OVERHEAD_MIN)`, It seems unreasonable to pass `extraJavaOptions`, So 
here I suggest setting it in the code 
`-XX:MaxDirectMemorySize=amMemoryOverhead`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to