Out of memory Minecraft: what to do and how to get rid of this error. Methods for solving the out of memory error in Minecraft

Solving the problem when “Out of Memory” pops up
If you installed the texture pack and have a black screen, install |
For textures with resolutions of 16x and 32x, McPatcher is not needed

In order to prevent “Out of Memory” from appearing, you need to do the following.
Runtime Parameters:

  1. Opening the control panel
  2. We are looking for a shortcut with "Java" or "Java Control Panel"
  3. Click the "Java" tab
  4. Click "View"
  5. Check for only one line! If there are more, move on to the next instruction.
  6. Under "Runtime Parameters" we write, for 32-bit it is recommended: -Xincgc -Xmx768M, for 64-bit you can choose at your discretion... For example, -Xincgc -Xmx2G ; -Xincgc-Xmx1512M
  7. Press "Enter"
  8. Reboot the computer
For -Xmx, do not set more than 3/4 of the entire computer memory.

There is another way in which you can change the size of memory allocated by Java.
Environment Variables:

  1. Right-click on “My Computer” and select “Properties”
  2. Select the "Advanced" tab
  3. Click "Environment Variables"
  4. At the top, click “Create”
  5. Name: _JAVA_OPTIONS
  6. Enter the parameters you need into the value. For example, -Xincgc -Xmx2G .
You can also launch the game using a bat file, of course with a different Java size.
Bat file:
  1. Let's create a notepad. You can choose any name
  2. "%ProgramFiles%\Java\jre6\bin\java.exe"-Xincgc -Xmx2G -jar Minecraft.exe . You must specify the path to java.exe in quotes. Instead of "Minecraft.exe" write the name of your launcher for Minecraft. It is important to respect the case of letters everywhere!
  3. Open "File" in Notepad
  4. Click "Save As". Choose where you will save it (it doesn’t matter where you save it)
  5. After the dot in the name there should be bat. For example, Minecraft.bat or ololo_piw_piw.bat
If you still get an error or a few lines in “Runtime Parameters”, then these instructions are for you:
  1. Removing Java from your computer
  2. Cleaning the registry. Programs for cleaning the registry -,
  3. Removing minecraft
  4. Download and reinstall Java. If you have a 64-bit system, install 64-bit Java. Otherwise it won't allocate as much memory as you want
  5. Install Minecraft again
  6. Let's move on to one of the instructions
If the error still pops up, turn off the sound.
None of this helped - you have little RAM, or the processor is weak.

Reference:
-Xincgc - Garbage Collector, frees unused objects from memory.
-Xmx - Installs maximum size memory.
-Xms - Installs minimum size memory.
Bat-file - A file containing a sequence of commands to be executed by the command interpreter.
Registry - Hierarchically built database of parameters and settings.

Many PC users, while working with any program, may experience the specified program crashing and the message “Out of memory” appearing. The problem that has arisen can have many reasons, ranging from a simple lack of memory on the user’s PC to incorrect work with the memory of a program.

"Out of memory" error (literally translated “out of memory”, or “insufficient memory”) usually occurs when there is insufficient memory on the user's computer. In particular, the following set of factors is “to blame” for the appearance of this error:

  • Insufficient RAM memory on your PC(working memory, the bars of which are set to motherboard your computer). If your computer has only 1 gigabyte of memory installed, you will encounter the described error quite often. It is now considered normal to have 4 gigabytes of memory or more on a computer;
  • Lack of hard disk space.

When your computer lacks physical R.A.M. memory, it borrows part of the hard drive space and creates so-called “virtual memory”. The system temporarily stores in such virtual memory that part of the data that does not fit in regular memory. Such data is usually stored in the file " pagefile.sys", the size of which can increase or decrease depending on the specifics of your OS. If there is not enough disk space, the "pagefile.sys" file will not be able to grow and the user will receive an "out of memory" error.

How to fix the "Out of memory" error


An alternative solution to the “Out of memory” problem is to install the appropriate fix from Microsoft. Or use browser extensions or add-ons like “The Great Suspender” for Google Chrome, which works well with unnecessary browser tabs.


bcdedit/set IncreaseUserVa 3072

And click on enter and restart your PC. The functionality of this command allows you to allocate 3 gigabytes of RAM for user applications to work on. On some systems this may be too much, so if after entering this command the system begins to crash more often, then enter in the command line as an administrator:

bcdedit /set IncreaseUserVa 2560—which will allow you to use 2.5 gigabytes instead of the previously booked 3.

If this does not correct the situation, return the settings to their default state:

bcdedit /deletevalue IncreaseUserVa

Conclusion

The “Out of memory” error can have many causes, related to both a physical lack of memory on the PC and other determinants that I outlined above. To solve the problem, I advise you to close unnecessary programs(browser tabs) on your computer (thereby unloading its memory), and thereby effective tool is to install an additional memory stick on your PC, which in most cases will help get rid of the “Out of memory” error on your computer.

In contact with

Many Minecraft players often encounter such a problem that they are thrown out of the game and out of memory Minecraft is written in the error log. What to do and how to solve this problem?

Essence of the question

In order to solve this problem and get rid of the error, you will have to try a little. In fact, there may be several reasons. So: how to get rid of out of memory (Minecraft), what to do to make the error go away, and how to insure yourself against similar problems in the future? First you need to know that this message usually appears for several reasons, and all of them can be eliminated with very simple steps.

Causes

What could cause it to appear? this problem:

  1. The computer's RAM is too weak, which is why the computer's temporary memory cannot cope with the load, and the game world simply does not load, resulting in a similar error.
  2. If the problem is not in the RAM, the computer is quite strong, but in any case it throws it out and writes out of memory Minecraft, what should I do in this case? It's simple. Even if you have 8 gigabytes of RAM, they may be limited. In order to solve this problem, you will need to give more space"Jave." We'll figure out how to do this a little below.
  3. It is possible that the wrong version of Java was installed, that is, if the operating system is 64-bit, but a 32-bit version was installed, such problems are possible. To solve them, you need to download from the official Java website the original version for the desired operating system; if it is 64-bit, therefore, you need to download for 64, and if 32, the corresponding one. Now it’s time to understand, when an out of memory (Minecraft) error appears, what to do and how to fix it.

Fixing this error

As was written above, this problem is resolved in a few seconds. It doesn't matter what operating system is used, be it "Windows 7", "Windows 8", "Windows 10" and so on. The problem is solved in the same way. If the first problem has arisen (the computer is too weak), then, alas, nothing can be done to fix it. Unless you install mods that reduce the graphics and size of the world, the problem may disappear. Or you can buy more powerful computer. However, if it gives an out of memory error, what should I do? Minecraft crashes on a strong computer. It's simple, just follow the instructions:

  1. Install latest version"Java" from the official website (if not installed).
  2. Go to the control panel. On Windows 10, this can be done by pressing the “Minimize + X” keys and selecting the “Control Panel” section from the list.
  3. You need to go to the "Java" settings, which are located in the "Control Panel" section. It will say Java. It is best to display icons small, this makes it much easier to find.
  4. Next, when the “Java” settings open, you need to select the Java subsection and click on View. Next, in Runtime Parameters you need to enter the following command - Xincgc-XmxYG. Only instead of the letter Y you need to enter the number of GB of RAM. If maximum amount- 4 GB, instead of Y you need to enter the number 2, if 8 - you need to enter 4. This will be quite enough. Here is the solution to this problem.

The "Out of Memory" error usually appears when there are many programs running on the computer that are using the resources available to the computer. Computer memory or RAM (random access memory) is used by a computer to quickly store data for processing.

When does this error appear?

As I noted above, running several programs at once can overload the amount of available free memory, which will lead to an “Out of Memory” error. This can happen both with new programs and with programs already running on the computer. Sometimes this can happen regardless of the amount of free memory available.

Cause of the "Out of Memory" error

The reason for these errors is a little more complicated. The Windows WIN32 subsystem has a limited amount of available memory. If memory in the WIN32 subsystem desktop heap is in use. Windows may display an "Out of Memory" error message.

Computers that work differently OS Microsoft Windows is not too vulnerable. This problem mainly exists for Windows NT 3.5 and Windows NT 3.1 users

How to fix the "Out of Memory" error

To fix this problem, you need to edit your Windows registry. Editing the registry is a risky endeavor. You need to act with caution, and only strictly according to the instructions:

  • Backup the registry - so you can restore it later if something goes wrong.
  • Click here to learn how to back up and restore your registry.

To avoid problems, follow these instructions carefully.

  • Increase the desktop heap size to fix this issue.
  • Launch Registry Editor by opening the RUN dialog box using the Windows_Key + R keyboard shortcut or from the Start menu. In the RUN dialog box, enter regedit to run Regedt32.exe.
  • From the HKEY_LOCAL_MACHINE subtree,
    Continue to the next section:
  • \System\CurrentControlSet\Control\Session Manager\SubSystems
  • Select Windows.
  • Select Row from the Edit menu.
  • Increase SharedSection parameter

From here, follow these steps depending on your operating system

For Windows NT:

  • SharedSection = XXXX, YYYY
  • Add ", 256" or ", 512" after the number yyyy.

For Windows 2000, Windows XP and Windows Server 2003:

  • SharedSection is used to determine the size of the system and desktop, it uses the following parameters
  • SharedSection = XXXX, YYYY, ZZZZ

For 32-bit operating systems

  • Increase the value of yyyy to "12288" and increase the value of zzzz to "1024".

For 64-bit operating systems

  • Increase the value of yyyy to "20480"; Increase the zzzz value to "1024".

Do you have your own quick solution to the “Out of Memory” error? Write it in the comment form for this article, and if your option turns out to be useful, we will definitely add to the guide.



If you find an error, please select a piece of text and press Ctrl+Enter.