Allocate more RAM to Minecraft

Table of contents:

Allocate more RAM to Minecraft
Allocate more RAM to Minecraft
Anonim

If you're getting reports of memory errors while playing Minecraft, you may be able to resolve them by allocating more memory (RAM) to the game. If you have a newer version of Minecraft, you can easily allocate RAM from the launcher. If you have an older version, you will need to create a batch file that will allow you to start Minecraft with more memory. If you have a server running, allocating more memory can improve server performance.

Steps

Method 1 of 3: Version 1.6.X and newer

2215469 1

Step 1. Check how much RAM you have available

Open your computer's system window using Win|Pause. Check how much memory you have installed on your system. This will help you find out how much RAM you can allocate to Minecraft.

If you don't have enough RAM, you can install more. This is one of the easiest computer upgrades to do yourself

2215469 2

Step 2. Install the latest version of Java SE

This ensures that you are able to allocate more memory to Minecraft, which runs on Java. See elsewhere for more information on how to download and install the latest version.

Make sure you download the correct version (32-bit or 64-bit) for your operating system

2215469 3

Step 3. Launch the Minecraft launcher

In 1.6.X and newer, you can allocate RAM directly from the Minecraft launcher. If you are using an older version, see the next section.

2215469 4

Step 4. Select your profile

Use the drop-down menu to select your profile. Click Edit Profile

2215469 5

Step 5. Activate JVM Arguments

In "Java Settings (Advanced)", check "JVM Arguments". Allows you to issue commands to customize Minecraft.

2215469 6

Step 6. Allocate more RAM

By default, Minecraft will allocate 1 GB of RAM to itself. You can increase this by typing -Xmx#G. Replace the # with the number of gigabytes you want to allocate. For example, if you want to allocate 3 GB, you can type -Xmx3G.

Make sure to set aside some RAM for the operating system. For example, if you have 8 GB of RAM installed, you should not allocate more than 7 GB to Minecraft

2215469 7

Step 7. Save your profile

Click Save Profile to save your settings.

2215469 8

Step 8. Launch Minecraft

Start your game. It will now run with the newly set amount of RAM.

2215469 9

Step 9. Check if all settings are working properly

During gameplay, press F3 to open the console. Look for the message "Allocated memory:" to find out how much memory is allocated to Minecraft.

Method 2 of 3: Version 1.5 and older

2215469 10

Step 1. Check how much RAM you have available

Open your computer's system window using Win|Pause. Check how much memory you have installed on your system. This will help you find out how much RAM you can allocate to Minecraft.

If you don't have enough RAM, you can install more. This is one of the easiest computer upgrades to do yourself

2215469 11

Step 2. Install the latest version of Java SE

This ensures that you are able to allocate more memory to Minecraft, which runs on Java. See elsewhere for more information on how to download and install the latest version.

Make sure you download the correct version (32-bit or 64-bit) for your operating system

2215469 12

Step 3. Open the Minecraft game directory

This is the folder containing the Minecraft.exe file that you start up to play Minecraft. This is usually not the same folder where the minecraft.jar file can be found.

2215469 13

Step #4. Right click and select New → Text Document

This will create a new text document in the same location as minecraft.exe. Name the file "Minecraft New Launcher" or something similar.

2215469 14

Step 5. Enter the code to allocate more RAM

Type the following code into your text document:

Change #### to the number of megabytes you want to allocate. To allocate 2 GB, type 2048. To allocate 3 GB, type 3072. To allocate 4 GB, type 4096, and to allocate 5 GB, type 5120

2215469 15

Step 6. Save the file as BAT file

Click traffic jam and select Save As…. Change the file extension from.TXT to.BAT.

If you don't see the file extensions, you can set Windows (in File Explorer) to show them

2215469 16

Step 7. Run the batch file to launch Minecraft

The.BAT file you created will be the new launcher for Minecraft. By using the.BAT file RAM will be allocated to the game.

2215469 17

Step 8. Check if all settings are working properly

During gameplay, press F4 to open the console. Look for the message "Allocated memory:" to find out how much memory is allocated to Minecraft.

Method 3 of 3: The Minecraft Server

2215469 18

Step 1. Check how much RAM is available on your system

This will let you know how much memory you can allocate to Minecraft.

If you don't have enough RAM, you can install more. This is one of the easiest computer upgrades to do yourself

2215469 19

Step 2. Check if you have a 32-bit or 64-bit system

If you have a 32-bit operating system, you can only allocate 1 GB of RAM to your server. If you have a 64-bit operating system and a 64-bit version of Java, the only limit is the amount of RAM installed. You can check this via the information in the system window.

2215469 20

Step 3. Open the Minecraft server directory

This is the folder containing the Minecraft_server.exe file that you use to start the Minecraft server.

2215469 21

Step #4. Right click and select New → Text Document

This will create a new text document in the same location as minecraft_server.exe. Name the file "Minecraft Server New Launcher" or something similar.

2215469 22

Step 5. Enter the code to allocate more RAM

Type the following code into your text document, depending on your operating system:

Windows

java -Xmx####M -Xms####M -exe Minecraft_Server.exe -o true

PAUSE

OS X

#!/bin/bash

cd "$(dirname "$0")"

java -Xms####M -Xmx####M -exe Minecraft_Server.exe -o true

Linux

#!/bin/sh

BINDIR=$(dirname "$(readlink -fn "$0")")

cd "$BINDIR"

java -Xms####M -Xmx####M -exe Minecraft_Server.exe -o true

Change #### to the number of megabytes you want to allocate. To allocate 2 GB, type 2048. To allocate 3 GB, type 3072. To allocate 4 GB, type 4096, and to allocate 5 GB, type 5120

2215469 23

Step 6. Save the file

In Windows, save the file as ".bat". Click traffic jamand select Save As…. Change the file extension from ".txt" to ".bat". If you are using OS X, save the file as a ".command". In Linux you use the extension ".sh" for this.

If you don't see the file extensions, you can set Windows (in File Explorer) to show them

2215469 24

Step 7. Run the new file to start Minecraft

The file you created will be the new launcher for the Minecraft server. Booting with the.bat,.command, or.sh file assigns the new amount of RAM to the server.

Popular by topic