I just want to share what solved the problem for me:
I sourced setDomainEnv.sh and echo ${JAVA_OPTIONS} and noticed that the MEM arguments were not there.
So I added MEM_ARGS to the last setup of the JAVA_OPTIONS.
Like so:
JAVA_OPTIONS="${JAVA_OPTIONS} ${MEM_ARGS}"
export JAVA_OPTIONS