In my case,
-Xms1024M -Xmx1024M is work
-Xms1024M -Xmx2048M result: Could not reserve enough space for object heap
after use JVM 64 bit, it allows using 2GB RAM, because I am using win server 2012
please see the available max heap size for JVM 32 bit on several OSs
https://www.codementor.io/@suryab/does-32-bit-or-64-bit-jvm-matter-anymore-w0sa2rk6z