Add flag SPARK_USE_CONC_INCR_GC to enable incremental gc. You can do the same (or customize it) by using SPARK_JAVA_OPTS