Inside an executor: heap regions, overhead and Python workers, cache levels, broadcast variables and accumulators.
On YARN or Kubernetes each executor runs in a container sized as the heap (spark.executor.memory) plus `spark.executor.memoryOverhead` — by default 10% of the heap, at least 384 MB — plus off-heap memory and spark.executor.pyspark.memory if you configure them. Go past the container's limit and the resource manager kills the executor.
Inside the heap, Spark's unified memory manager carves out reserved memory, user memory and a shared unified region for execution and storage. Outside it, the overhead covers JVM native memory and, in PySpark, the Python worker processes.
Reach the last step for the run summary: the key takeaways from this lesson.