Can this issue be closed please?
setenv.sh contains
if [[ ! -z "$JAVA_OPTS" ]]; then if [[ ! $JAVA_OPTS =~ .*-Xmx[0-9]+.* ]]; then JAVA_OPTS="$JAVA_OPTS $XMX" fi
which should allow to change the heap size