Invalid initial heap size: -Xms4G The specified size exceeds the maximum representable size. paper code example
Example: Invalid initial heap size: -Xms4096m -Xm4096m
Options opt = new OptionsBuilder()
...
.jvmArgs("-Xms2048m", "-Xmx2048m", "-XX:MaxDirectMemorySize=512M")
...