`-R=-Xms1g,-Xmx2g` is seen as one option which causes a runtime error. Instead `-R=-Xms1g -R=-Xmx2g` must be specified.