Welcome to Minetown!
To join our community, please login or register!
Internet Explorer
Internet Explorer is not supported. Please upgrade to a more modern browser.

[Enjin Archive] Annoying memory error
Started by Unknown User

Java keeps runing out of memory... A way to fix this or am I Doomed? (V)O,,O(V)
whatm os
Renew your computer, buy a computer upgrade kit for €125,- and a new hard disc.

Should be good, happend to me to.
u cn alocate mnore m emory i8n windows 7
Make a batch file, editing the following :

@ECHO OFF

"%ProgramFiles(x86)%\Java\jre6\bin\javaw.exe" java -Xmx1024M -Xms1024M -jar "C:\Users\PCUSERNAME\Desktop\minecraft.exe"

If your computer is 64bit add this.

The amount of memory, e.g. 1024M = 1GB

The file path for minecraft, edit the username to match your PCs

To make a batch file, make a .txt and save as 'All File Types' and add .bat to the end of it.

Hope this helps =)
I'll try it
so you want me to write

@ECHO OFF

"%ProgramFiles(x86)%\Java\jre6\bin\javaw.exe" java -Xmx16384M -Xms16384M -jar "C:\Users\PCUSERNAME\Desktop\minecraft.exe"
Close minecraft,

Download jre7 for your system: http://jdk7.java.net/download.html

Install it

go to control panel, then under java

Then select the java tab.

Then click "View"

Disable java 1.6

Under the "Runtime Parameters" enter this:
Code:
-Xincgc -Xmx1G

Click Apply on everything

Now your minecraft should be less laggy and more stable.

This just changed the way java deals with the garbage collection and allocated a maximum of 1gig of memory for the application, which is higher than the regular but it won't use it completely and manage it better because of the incremental garbage collection argument.

Cya
Thx Sawine!