Creating a command to run .jar file with more memory

Joined
Oct 13, 2012
Messages
4
Reaction score
0
Points
1
Hey, i want to create .command file that tells .jar file to run with 512 or 1024m of memory.
Im running a server for the game and it has 100m of memory and keeps on quiting because it doesnt have enough memory.
So if someone could tell how can i run it with more memory that would be great. I have tried:
java -Xmx1024M -Xms1024M -jar minecraft.server.jar but it runs only in terminal, i need it to run from the folder if you know what i mean by that, basically if the file is turned on it will create several other files if they dont exist, they do - so i need it to run from the folder.

APPRECIATE YOUR HELP
 
OP
R
Joined
Oct 13, 2012
Messages
4
Reaction score
0
Points
1
reduced ram use? I need it so it can use more ram, it is limited to only 100m i need at least 1gb, but yeah i will definitely try it
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top