Configuring Heap Memory Parameters for Spark Executor
Scenario
When the executor off-heap memory is too small, or processes with higher priority preempt resources, the physical memory usage will exceed the maximal value. To prevent the physical memory usage from exceeding, set the following parameter.
Configuration
Navigation path for setting parameters:
When submitting an application, set the following parameter using --conf or adjust the parameter in the spark-defaults.conf configuration file on the client.
Parameter |
Description |
Default Value |
---|---|---|
spark.executor.memoryOverhead |
Indicates the off-heap memory of each executor, in MB. Increasing the value of this parameter prevents the physical memory usage from exceeding the maximal value. The value is calculated based on max(384, Executor – Memory x 0.1). The minimal value is 384. |
1024 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot