Help with giving more RAM to a local hosted server

Status
This thread has been locked.

Binary

Banned
Feedback score
0
Posts
19
Reactions
0
Resources
0
So I am very aware of how this is done, and I can't seem to find the issue.
A few things to note, i am using Java 8 64bit and I have 32GB of RAM in my PC. I have tried different bat scripts but this is the one i have been using, but it caps off at 1GB even though i have plenty of GB's of RAM

java -Xms1024M -Xmx1024M -jar spigot.jar
pause


If I try and increase that any more i get the following error:

Invalid initial heap size: -Xms6144M
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Any ideas on what could be causing this and how i could fix it?
 
Banned forever. Reason: Attempted Scamming (https://builtbybit.com/threads/binary-scam-report.170739/)
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Melon

Supreme
Feedback score
47
Posts
974
Reactions
697
Resources
0
Yeah, as above, just make sure that you have available ram. If anything just restart your PC and try it again.
 

Clyde

Premium
Feedback score
44
Posts
1,574
Reactions
1,220
Resources
0
32bit Java only supports a maximum of 1gb or 1024mb of memory of I am not mistaken, while 64bit supports as much ram as you can give it.
 
Status
This thread has been locked.
Top