Minecraft crashes out of memory. Out of memory Minecraft: what to do and how to get rid of this error

We solve the problem when the "Out of Memory" pops up
If you have installed a texture pack and your screen is black, install |
For textures, resolution 16x and 32x, McPatcher is not needed

In order not to appear "Out of Memory", you need to do the following.
Runtime Parametrs:

  1. Opening the control panel
  2. Looking for a shortcut with "Java" or "Java Control Panel"
  3. Click the "Java" tab
  4. Click "View"
  5. Check for one line only! If there are more of them, go 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. We press "Enter"
  8. Restart your computer
For -Xmx, do not use more than 3/4 of the total computer memory.

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

  1. Right-click on "My Computer" and select "Properties"
  2. Select the "Advanced" tab
  3. Click on "Environment Variables"
  4. At the top, click "Create"
  5. Name: _JAVA_OPTIONS
  6. We drive the parameters you need into the value. For example, -Xincgc -Xmx2G.
And you can also run the game using a bat-file, of course, with a different Java size.
Bat file:
  1. Create a notebook. You can choose any name
  2. "% ProgramFiles% \ Java \ jre6 \ bin \ java.exe"-Xincgc -Xmx2G -jar Minecraft.exe. In quotes, you must specify the path to java.exe. Replace "Minecraft.exe" with the name of your Minecraft launcher. It is important to respect the case of letters everywhere!
  3. Open "File" in notepad
  4. Click "Save As". Choose where you will save (no matter where you save it)
  5. After the dot in the name, there must be a bat. For example, Minecraft.bat or ololo_piw_piw.bat
If you still get an error or a few lines in "Runtime Parametrs", then this instruction is for you:
  1. Removing Java from your computer
  2. We clean the registry. Registry cleaners -,
  3. Delete 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. Putting minecraft again
  6. Go to one of the instructions
If the error still pops up, turn off the sound.
None of this worked - you have little random access memory, or the processor is weak.

Reference:
-Xincgc - Garbage Collecter, frees unused objects from memory.
-Xmx - Sets the maximum memory size.
-Xms - Installs minimum size memory.
Bat-file - A file containing a sequence of commands for execution by the command interpreter.
Registry - A hierarchically structured database of parameters and settings.

An out of memory error may appear in Minecraft, due to which it is impossible to continue playing. The reason is that the game does not have enough RAM allocated to it by the system.

How do I fix the error?

If a browser with many tabs is running in parallel with Minecraft, or other similar software that requires a large amount of RAM, then all this must be turned off before starting the game. It is also worth turning off mods and various "enhancers" - they can heavily load PC resources. If this does not help, then proceed as follows:

  1. Configure Java machine. Open the Java Control Panel, go to the "Java" tab, go to the "View" section. There should be one line, if there are more of them, delete everything except one arbitrary one. In the remaining line, in the "Runtime Parameters" column, write -Xms (x1) m -Xmx (x2) m, where (x1) is the minimum amount of RAM available for the Java machine, and (x2) is the maximum. It is preferable that the second value does not exceed 75% of the total amount of PC RAM. For example, if its 2 gigabytes, then the following entry -Xms750m -Xmx1500m will do. We confirm the changes by clicking on OK, then we reboot the system.
  2. Set priorities. We open the game and the Task Manager. Go to the Manager window on the Applications tab (Details), find the javaw.exe process among the lines, right-click on it, go to "Set priority" and select "High" in the drop-down menu.
  3. Lower graphics settings. This is possible if the game does not crash immediately, but after some time intervals. Lower all settings to the minimum and try to play for at least a few hours. If during this time the out of memory error did not appear in Minecraft, then proceed in two ways. You can leave everything as it was, or you can gradually increase the quality of the graphics to find the setting that caused the failure.

Many PC users, while working with any program, may encounter the "crash" of the specified program, and the message "Out of memory" that appears. The problem that has arisen can have many reasons, ranging from a banal lack of memory on the user's PC, and ending with incorrect work with the memory of any program.

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

  • Insufficient RAM on your PC(working memory, the strips of which are set on 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 disk space, and creates the so-called "virtual memory". The system temporarily stores in such virtual memory that part of the data that does not fit in normal 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 using the "The Great Suspender" level browser extensions or add-ons for " Google chrome"That works well with unnecessary browser tabs.


bcdedit / set IncreaseUserVa 3072

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

bcdedit / set IncreaseUserVa 2560—That will allow using 2.5 gigabytes instead of the previously booked 3.

If this did not fix the situation, return the settings to the default state:

bcdedit / deletevalue IncreaseUserVa

Conclusion

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

In contact with

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

When does this error appear?

As I noted above, launching 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. This can sometimes 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 WIN32 Windows subsystem has a limited amount of available memory. If memory in the WIN32 desktop heap is in use. Windows may display an "Out of Memory" error message.

Computers that don't work like OS Microsoft Windows is not overly 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 undertaking. You need to act with caution, and only strictly according to the instructions:

  • Back up your registry so you can restore it later if something goes wrong.
  • Click here to learn how to create backup and restore the registry.

Follow these instructions carefully to avoid problems.

  • Increase the size of the desktop heap to fix this issue.
  • Start Registry Editor by opening the RUN dialog box by 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,
    Proceed to the next section:
  • \ System \ CurrentControlSet \ Control \ Session Manager \ SubSystems
  • Select Windows.
  • Choose "Row" from the "Edit" menu.
  • Increase the 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 yyyy value to "12288" and increase the zzzz value to "1024".

For 64-bit operating systems

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

Do you have your own version of a quick solution to the "Out of Memory" error? Write it in the comments form for this article, and if your option turns out to be useful, we will definitely update the guide.