Adding Ram to Server

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
Status
Not open for further replies.

Hungrysnorlax

New Member
Jul 29, 2019
3
0
0
I have tried editing the text in the .bat file for the server to "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" and other forms of that and the file will only run with the original text that was there.
 

Nessiroj

New Member
Jul 29, 2019
855
0
1
On what OS are you running the server? Cause unix for example doesn't use the .bat file. Is it a dedicated selfhosted server or are you renting one somewhere?
 

Nessiroj

New Member
Jul 29, 2019
855
0
1
Try changing the line to
Code:
java -Xmx512M -Xms1024M -jar minecraft_server.jar -nogui
afterwards press save and double click that .bat file to see what happends, if everything is right there should be no gui anymore (and saving mem that way)
 

Hungrysnorlax

New Member
Jul 29, 2019
3
0
0
I already looked at the wiki before I made the thread. I tried that new text and it does not work. It starts a command prompt window like it should then that window simply closes.
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
if you are running a 32 bit operating system, java will not launch the server if you try to give it more than 1.5 gigs of ram (i think it was 1.5, it may be just 1, idr atm)

add PAUSE in the next line of the .bat file to keep the console window open.

Code:
java -Xmx512M -Xms1024M -jar minecraft_server.jar -nogui
pause

edit: wait i see a goof in that... so much for copy paste

Code:
java -Xmx1024M -Xms512M -jar minecraft_server.jar -nogui
pause

person i copied from had those reversed... bad Nessiroj!
 
Status
Not open for further replies.