Sometimes in a Spark job, we face OOM issues like the ones below:
org.apache.spark.shuffle.FetchFailedException: failed to allocate 16777216 byte(s) of direct mem