The Meaning of Life, the Universe, and Everything.
Location:
Michigan
Join Date:
8/20/2010
Posts:
247
Location:
Michigan US
Minecraft:
JJDeafGeek
Xbox:
JJDeafGeek
Member Details
I have a problem where Minecraft Beta Client takes up too much memory and ignores my memory parameters I have set in the run.bat file.
NOTE: This is a 64bit Java and I am using Windows 7 64.bit.
@echo off
"%ProgramFiles%\Java\jre6\bin\javaw.exe" -Xmx512M -jar %appdata%/.minecraft/minecraft.jar
When I run the above bat file, it runs the game, but it ignores my java memory parameters I have set.
If I am doing this wrong, please tell me, I want minecraft to launch with a Maximum of 512MB of ram, so it doesn't gobble up the rest of my system ram (even though it really uses only 128-310ish MB of that ram)
just a question, is that actually the location of your .jar file?
I dont store mine in the .minecraft directory so it just seems strange that its there...?
You can put Minecraft.exe anywhere. This file actually contains only the code needed to download, update, and launch the actual Minecraft program. when you run it for the first time it creates a directory underneath your Windows profile's Application Data directory (which is what the variable %appdata% points to) called .minecraft -- this is the directory that stores the actual program code in the form of .jar (Java ARchive) files filled with compiled Java code in .class files and other resource files.
You can start Minecraft directly by invoking javaw.exe (which is the Java for Windows runtime executable) with the proper parameters.
OP, have you tried using Xms as well as Xmx? I don't know a lot about how the java runtime is called, but when I see modifications to its memory usage I usually see both of these parameters used.
NOTE: This is a 64bit Java and I am using Windows 7 64.bit.
When I run the above bat file, it runs the game, but it ignores my java memory parameters I have set.
If I am doing this wrong, please tell me, I want minecraft to launch with a Maximum of 512MB of ram, so it doesn't gobble up the rest of my system ram (even though it really uses only 128-310ish MB of that ram)
I dont store mine in the .minecraft directory so it just seems strange that its there...?
You can start Minecraft directly by invoking javaw.exe (which is the Java for Windows runtime executable) with the proper parameters.
OP, have you tried using Xms as well as Xmx? I don't know a lot about how the java runtime is called, but when I see modifications to its memory usage I usually see both of these parameters used.
Check Out My Youtube
And yes I have tried with -Xms512M -Xmx512M and it ignores both...