`get_mem_opts` looks into the configured options for java for `-Xmx` settings before adding its own, so you want to make sure if the user has provided any via `*_OPTS` values it doesn't provide memory settings.