It is currently 27 Aug 2025, 17:02
   
Text Size

Java Heap Space syntax

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Java Heap Space syntax

Postby timmermac » 13 Feb 2011, 23:19

Can someone tell me what the procedure would be for permanently increasing the Java Heap Space in Windows or just increasing it for Forge just using Windows? I'm getting the impression that the trick I'm using for Forge isn't the way I'm supposed to do it.
Attachments
Heap Error Prevention.PNG
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Java Heap Space syntax

Postby Chris H. » 14 Feb 2011, 00:42

I believe that Fnoed was right when he stated in message Re: Next beta, 2011 third release that a shortcut would not do the trick.

Have you explored the link in his message? It looks like the jsmooth-0.9.9-7 application can fairly easily and quickly build a launcher for windows which will increase the heap space used by java while loading the forge JAR.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Java Heap Space syntax

Postby ZzzzSleep » 14 Feb 2011, 04:24

I just use a batch file with the following command

"\Program Files (x86)\Java\jre6\bin\java.exe" -Xmx1024M -jar run-forge.jar

You'll need to change it based on where java is installed, but otherwise it should be good.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Java Heap Space syntax

Postby Fnoed » 14 Feb 2011, 04:27

I have created an updated launcher, available here. It is identical to the current one, except it has a 1G heap size.
Fnoed
 
Posts: 84
Joined: 20 Dec 2010, 01:03
Has thanked: 0 time
Been thanked: 3 times

Re: Java Heap Space syntax

Postby timmermac » 14 Feb 2011, 04:36

With this launcher, does it matter where I have Forge located?
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Java Heap Space syntax

Postby Fnoed » 14 Feb 2011, 04:40

No, but the Forge jar must be named "forge.jar" and be in the same folder as the launcher.
Fnoed
 
Posts: 84
Joined: 20 Dec 2010, 01:03
Has thanked: 0 time
Been thanked: 3 times

Re: Java Heap Space syntax

Postby timmermac » 14 Feb 2011, 04:42

OK, thanks
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 40 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 40 users online :: 0 registered, 0 hidden and 40 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 40 guests

Login Form