How To Allocate More RAM To A Minecraft Server, With And Without The Launcher

Is your Minecraft server running slow or laggy? Maybe it is a memory issue. Find out how to allocate more RAM to your Minecraft server by reading this guide.
How To Allocate More RAM To A Minecraft Server, With And Without The Launcher




Running Your Own Minecraft Server

Minecraft is a beautiful, vast, and infinite sandbox game. However, installing a lot of mods and texture packs can drastically affect the performance of the game, especially if you do not have a high-end PC.

One way to fix these performance issues is to allocate more RAM to Minecraft, especially if you run your own Minecraft server software with your friends. This will allow more people to play Minecraft in your server.

Know How Much RAM Is Installed In Your System

On Windows

The very first step that you should do is to determine how much RAM your PC actually has. This is done by following these few steps:

  1. Find out how much RAM your computer has by pressing the start button on your keyboard or desktop.
  2. Open Settings. Keep in mind that the start menu can look different from your side because of difference in personalization settings.
    open settings
  3. Click the System tab.
    click system tab
  4. Navigate to the bottom of the System tab. Find the About option and click it.
    navigate to about
  5. Inside the About page, look for Device specifications.
    about page
  6. After which, it will show all the system specifications of your computer. This is where you will find how much RAM is installed. It will also show how much max RAM can be allocated to other application.
    installed ram

On Mac

If you are using an Apple system, follow the similar steps below:

  1. Click the Apple icon in the top left corner of your screen.
  2. Select About this Mac.
    select about this mac
  3. Go to the Overview tab. The pop-up window should be on it already.
    go to overview tab
  4. This should tell you how much RAM is installed as well as other info regarding the system's specifications.
    check ram installed

Knowing how much RAM your computer has installed is vital in this RAM allocation process to avoid allocating too much ram. Typically, running a Minecraft server takes up at least 3 GB of RAM as a requirement. The more memory the game has, the better it will perform. This means that when you have more RAM allocated to the game, there can be more people you can host to play in your own server.

Note: Please keep in mind that the following steps should only be done by adults or with adult supervision who has knowledge about computers or Minecraft technicalities in general.

Using The Default Launcher To Allocate More RAM

Before we proceed, the updated version of Java should be downloaded and installed to have more RAM allocated to your Minecraft server. Without the right version installed, the process will not proceed as intended. This will result with you only having to use the default or the usual amount of RAM, which is the required 3 GB. Remember to download and install at least Java 8 64-bit to allocate more RAM to Minecraft.

After which, follow these simplified steps to allocate more RAM to your Minecraft server using the default launcher:

  1. Open Minecraft using the default launcher.open minecraft default launcher
  2. Find the Installations tab in the launcher and click it.find installations tab
  3. Select your desired version. Usually, it is the latest version.
    select which version
  4. Then, press the icon with 3 dots
    press 3 dots
  5. After that, click edit.click edit
  6. Click the More Options button to open the drop-down menu.
    select more options
  7. Find the box with JVM ARGUMENTS. It will have something written like: “-Xmx2G-XX:+UnlockExperimentalVMOptions...”
    find the JVM box
  8. Notice the first few characters in the box, which has the letters and numbers like this: -Xmx2G. The number 2 corresponds to the amount of currently allocated RAM to the game. In this case, it uses only 2 GB.
    jvm arguments
  9. You can change the amount of allocated RAM just by replacing the figure with your desired number. Remember that you should NOT allocate all the RAM that your computer has installed. This will affect other processes in the system if you go over the top.
  10. When you are satisfied with your allocated RAM amount, click save in the lower right corner.
    click save button
  11. Then, launch the game same as normal.

Using Third Party Launchers To Allocate More RAM

Other than the default launcher, you can also use your preferred third party launchers to change the RAM allocation to your Minecraft servers. One of the leading third party launchers is the CurseForge Minecraft game launcher. If you have any of these installed, you can use this also.

Follow these similar steps from earlier:

  1. Run the CurseForge Minecraft launcher.
    open curseforge launcher
  2. Click the gear icon in the lower left corner of the window to open the Settings menu.
    gear icon curseforge
  3. A "Game Specific" section is available where you should select Minecraft. This should be on the left side of the settings page.
    game specific section
  4. After selecting Minecraft, navigate down to "Java Settings"
  5. You should be seeing an "Allocated Memory" option that has a slider.
    navigate to java settings
  6. Simply drag the orange ball of the slider and drop it in your preferred number of allocated RAM.
    adjust RAM slider
  7. Double check everything, even though any changes will be automatically saved.

Note: Most third part launchers, like CurseForge or the Technic launcher, does not measure RAM in gigabytes (GB) just like in the default launcher. RAM is measured using megabytes (MB) in these other launchers. In cases like these, remember that 1 GB is equal to 1024 MB.

Creating A Batch File In The Server Folder To Allocate More RAM

On the other hand, you can create a batch file or a simple text file that you will input in the server file folder to solve your RAM problem. The process looks intimidating, but it is relatively simple. Make sure to pay attention to every small detail to avoid any mishaps.

Follow the instructions below to allocate more RAM to your Minecraft servers:

  1. Access the Minecraft server directory folder on your system. It is the folder that has the executable file of your Minecraft server, usually Minecraft_server.exe. Make sure to get a hold of the server folder before we proceed to the next step.
    minecraft server directory
  2. Next, we right-click in the same folder. Hover on the New button and choose Text Document to create a new one.
    new text document
  3. Once the Notepad opens, type in the following: java -Xmx****M -Xms****M-exe Minecraft_Server.exe -o true PAUSE
    type in the document
  4. After which, you should replace the four asterisks (****) with the amount of RAM you want to reallocate, but it should be in MB. For example, if you want to allocate 4 GB to the Minecraft server, you should input 4096. Always remember that 1 GB is equal to 1024 MB.
    replace asterisks
  5. After you have decided how much RAM to allocate, save the document by using Save As in the File drop-down menu.
    save using save as
  6. Change the file type to All Files.
    choose all files
  7. Replace the file extension to a .bat file instead of .txt file. By doing this, the new text document will become an executable batch file that will serve as your Minecraft file server launcher.
    change to bat file
  8. Simply double-click the file to run the launcher and launch your Minecraft server with your desired amount of RAM.
    batch file as the new launcher

We hope that this guide helped you in allocating more RAM to your Minecraft server. All we want is to have your Minecraft experience be smooth, without all the lagging and crashing.



Share
URL Copied