We currently request 4GB of RAM, with a limit set to 8GB, but we currently sit at 2GB RAM usage due to SPARK_DAEMON_MEMORY being hardcoded to 2g.
We should probably set Xms to a value related to $.Values.app.requests.memory and Xmx to a value related to $.Values.app.limits.memory instead, to make sure that the JVM memory constraint is tied to what we request the scheduler and set in the cgroup, while keeping space for off-heap data.
