n00bfest.com
Home Forum phpBB3 Shoutbox Servers Teamspeak Admins Donate FAQ
Sign Up
Stats Contact Us!

 

View unanswered posts | View active topics It is currently Thu Sep 03, 2026 6:45 am



Reply to topic  [ 6 posts ] 
 Minecraft Batch 
Author Message
[n00b] Member
User avatar

Joined: Wed Dec 16, 2009 11:18 pm
Posts: 498
Post Minecraft Batch
Code:
@ echo off
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx1024M -Xms512M -jar "C:\...\Minecraft.exe"
pause


This is for allocating memory when you start up your Minecraft client. Put it in a text file and if you are using Notepad, switch the file type to all types and change the name to file.bat to make it a batch file (name it w/e you want). For those that use other programs like Notepad++, just switch the file type to batch(.bat) if available. The 1024M is the amount of memory you are allocating, which in this case is 1024 megabytes, aka 1GB. You can do this in gigabytes as well by putting 1G instead of 1024M.

In regards to the 2 filepaths listed, this is where your javaw.exe file is and where your Minecraft.exe is. Change this appropriately for your operating system and the location of your files. The first filepath is if you are using 64-bit java. If you run 32-bit java, switch this to Program Files (x86), or leave it as is if you run a 32-bit OS. For those running 64-bit OS with 32-bit java, consider installing the 64-bit version of java as it might work better for you whenever you have something that is capable of using it.

The code above is for Windows users, but you can make similar scripts if you are either a Linux or Mac user. If anyone one needs help with this, feel free to hit me up and I'll see what I can do.

_________________
Image
"When did this Kog'Maw get here?"


Fri Feb 10, 2012 2:57 pm
Profile
[n00b] Member
User avatar

Joined: Wed Oct 26, 2011 8:31 pm
Posts: 397
Post Re: Minecraft Batch
This is helpful. it may fix my memory issues on my main computer.

I use java -Xmx800m -jar C:\test\Minecraft.jar in a batch file to run minecraft on my work computer. Or else I get driver issues.


Mon Feb 13, 2012 4:03 pm
Profile
[n00b] Member
User avatar

Joined: Wed Dec 16, 2009 11:18 pm
Posts: 498
Post Re: Minecraft Batch
Just letting everyone know that I switched the code a little bit. After reading up a little more on the Xmx and Xms settings for java, Xms should be set as something lower than Xmx. Xms is the initial amount of memory the java application will use, which in our case is Minecraft. Xmx is the maximum amount of memory allocated to the application, should it need that.

EDIT: Whether or not this actually makes any difference I think depends solely on your machine in regards to the amount of memory you have, your cpu, and what you are running aside from java at the same time.

_________________
Image
"When did this Kog'Maw get here?"


Wed Feb 15, 2012 1:19 pm
Profile
[n00b] Member
User avatar

Joined: Wed Oct 26, 2011 8:31 pm
Posts: 397
Post Re: Minecraft Batch
Mine is strange it goes from around 120 - 130 FPS to around 1 or 2 FPS within 5 minutes

I know the computer is up to par..
It is a 3.1 ghz AMD tricore processor, 4 gig of DDR3 ram, and a nvida GTX 460 1 GB graphics card..

Also, setting the memory in java did not help..

Actually kinda stumped on this one to be honest...


Wed Feb 15, 2012 4:04 pm
Profile
[n00b] Member
User avatar

Joined: Wed Dec 16, 2009 11:18 pm
Posts: 498
Post Re: Minecraft Batch
It could be one of those weird leak issues. Not quite sure about that one.

_________________
Image
"When did this Kog'Maw get here?"


Wed Feb 15, 2012 4:37 pm
Profile
[n00b] Member
User avatar

Joined: Wed Oct 26, 2011 8:31 pm
Posts: 397
Post Re: Minecraft Batch
ill have to google that and see what I can come up with..


Fri Feb 17, 2012 2:06 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.