By default, the amount of memory available for each executor is allocated within the Java Virtual Machine (JVM) memory heap. This is controlled by the
However, some unexpected behaviors were observed on instances with a large amount of memory allocated. As JVMs scale up in memory size, issues with the garbage collector become apparent. These issues can be resolved by limiting the amount of memory under garbage collector management.
Selected Databricks cluster types enable the off-heap mode, which limits the amount of memory under garbage collector management. This is why certain Spark clusters have the
spark.executor.memory value set to a fraction of the overall cluster memory.
The off-heap mode is controlled by the properties
spark.memory.offHeap.size which are available in Spark 1.6.0 and above.
The following Databricks cluster types enable the off-heap memory policy: