The time interval between Garbage Collection is set to 30min by default. If you want the Garbage Collection to happen sooner, then reduce the time. Try this:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.cleaner.periodicGC.interval=20