Hey, i just made a server for me and my friends on my pc, (32gb ram , i9 9900k) and i wanted to allocate more ram but i can do this only to 512M/1G and when i wrote "java -Xmx2G -Xms2G -jar server.jar" in my bat file it doesnt start, i mean cmd window shows for like half of second and *poof* there is no server and there is no more ram allocated :/ (for paramets copied from mojang it works)
+ I wrote pause so i can see what happens and i get :
C:\Users\Konrad\Desktop\Server Minecraft Survival>java -Xmx2G -Xms2G -jar server.jar
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
C:\Users\Konrad\Desktop\Server Minecraft Survival>pause
Press any key to continue . . .