The BDcraft forum has migrated.
You are currently browsing the Archived BDcraft Forum.
To post a new topic, comment or patch, let's go to the new forum: BDcraft Community Forums

Tutorial: Giving Minecraft more RAM

24 replies [Last post]

Comments

Skullghost3's picture
Skullghost3
Offline
I searched for an answer myselfI like to comment everythingI love to post here
Joined: 17/03/2013

Can You Make a video Tutorial please?

HanFox's picture
HanFox
Offline
I am Forum Lead ModeratorI released a major BDcraft patchI love galleriesI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 16/04/2012

[quote=Skullghost3]Can You Make a video Tutorial please?[/quote]
A video tutorial for what specifically?

The custom launchers are literally just just 2 steps and I could explain the batch file with 2 pictures, too.

Skullghost3's picture
Skullghost3
Offline
I searched for an answer myselfI like to comment everythingI love to post here
Joined: 17/03/2013

The Batch File

SPARKST3R's picture
SPARKST3R
Offline
I released a major BDcraft patchI am a Top ContributorI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 30/04/2012

[quote=Skullghost3]The Batch File[/quote]
Create a new text file and change the file extension to .bat then enter this content into the file. a;tering values where required
javaw -Xmx2048m -Xms1024m -jar Minecraft.exe
change xmx to the amount of ram to allocate in gigabytes times 1024 and leave xms as it is.
Put Minecraft.exe in the same directory as the bat file
Then run the bat file
Han will quite likely have more parameters than this but this works

HanFox's picture
HanFox
Offline
I am Forum Lead ModeratorI released a major BDcraft patchI love galleriesI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 16/04/2012

[quote=SPARKST3R][quote=Skullghost3]The Batch File[/quote]
Create a new text file and change the file extension to .bat then enter this content into the file. a;tering values where required
javaw -Xmx2048m -Xms1024m -jar Minecraft.exe
change xmx to the amount of ram to allocate in gigabytes times 1024 and leave xms as it is.
Put Minecraft.exe in the same directory as the bat file
Then run the bat file
Han will quite likely have more parameters than this but this works[/quote]
I actually have less... it's also in the OP. What he was asking for was a video tutorial, but I'm not sure how it'd really help.

I can do 2 screenshots to show anything a video would show. So I guess if I were to do anything I'd do that.

It'll be entirely redundant when the new MC launcher is out though. It has the option to do Java switches inside that.

Skullghost3's picture
Skullghost3
Offline
I searched for an answer myselfI like to comment everythingI love to post here
Joined: 17/03/2013

Yes please do screenshots

HanFox's picture
HanFox
Offline
I am Forum Lead ModeratorI released a major BDcraft patchI love galleriesI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 16/04/2012

[quote=Skullghost3]Yes please do screenshots[/quote]
Added a screenshot to OP.

Kubeology's picture
Kubeology
Offline
Joined: 26/06/2013

I use magic launcher and I followed your steps and I added 4gb of ram but I got this message every time? Please help

Spoiler: Highlight to view
MagicLauncher 1.1.5
java.home: C:\Program Files (x86)\Java\jre7
java.runtime.name: Java(TM) SE Runtime Environment
java.runtime.version: 1.7.0_25-b16
os.name: Windows 8
os.version: 6.2
os.arch: x86
sun.arch.data.model: 32

*** Starting Minecraft ***
Profile: Default
Environment: Classic
Minecraft version: (modified!) 1.5.2
Minecraft.jar: minecraft.jar
Mods:
OptiFine_1.5.2_HD_U_D2.zip
ShadersMod-mc1.5.2-ofuD2-1.45.2.zip
SEUS v10 RC7 Ultra.zip
Java path: C:\Program Files (x86)\Java\jre7\bin\java
Memory: 4096 MB
LauncherPath: /C:/Users/Gabe/Desktop/MagicLauncher_1.1.5.exe
Main class: net.minecraft.client.Minecraft
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid initial heap size: -Xms4096m
The specified size exceeds the maximum representable size.

*** Starting Minecraft ***
Profile: Default
Environment: Classic
Minecraft version: (modified!) 1.5.2
Minecraft.jar: minecraft.jar
Mods:
OptiFine_1.5.2_HD_U_D2.zip
ShadersMod-mc1.5.2-ofuD2-1.45.2.zip
SEUS v10 RC7 Ultra.zip
Java path: C:\Program Files (x86)\Java\jre7\bin\java
Memory: 4096 MB
LauncherPath: /C:/Users/Gabe/Desktop/MagicLauncher_1.1.5.exe
Main class: net.minecraft.client.Minecraft
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid initial heap size: -Xms4096m
The specified size exceeds the maximum representable size.

HanFox's picture
HanFox
Offline
I am Forum Lead ModeratorI released a major BDcraft patchI love galleriesI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 16/04/2012

@Kubeology: Yea, I kept intending to update the thread to reflect that 32bit OSes (os.arch x86 in your log) can't use more than 2GB of memory per application.

There is a "trick" to making Windows OSes use 3GB instead, but it may not work on Windows 8.

I'll update the thread properly on the new forum Very Angry

Kubeology's picture
Kubeology
Offline
Joined: 26/06/2013

Thanks but I tried two and that didn't work + I'm running windows 8 64bit?