


As such, set the RAM amount in multiples of 1,024 megabytes.ġ0. Quick tip: Unlike with storage space, when it comes to RAM, one gigabyte equals 1,024 megabytes – not 1,000. Java -Xmx2048M -Xms2048M -jar server.jar nogui By default, it's set to 1024MB of RAM, or one gigabyte (GB).Ī five or more player server should have at least 2GB of RAM allocated, for example, which you can set by changing the code to: The RAM is determined by the first two numbers in the line of code, which are amounts of RAM in megabytes (MB). The more RAM you give it, the smoother your server can run, but the more stress it'll put on the computer.ĩ. You can also change the RAM allocation for your server in this line of code. Java -Xmx1024M -Xms1024M -jar server.jar noguiĨ. Within the string of command text, you'll see the words "minecraft_server.1.18.2.jar." You'll need to rename that portion of the text "server.jar." That means that the new line of code will now read: Paste the string of command text into your start.txt document.ħ. Paste the string of command text into your start.txt document.Ħ.
