Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[Launcher] RAM Allocation Utility

updated ram memory gui launcher utility tool windows shortcut switch

  • Please log in to reply
16 replies to this topic

#1

TortoiseWrath

Posted 23 June 2012 - 12:32 AM

I've seen some articles detailing how to launch Minecraft with more than the default 128-512 MB of RAM allocated to it to improve performance; doing this greatly improved the performance for me.

Noticing that it was tedious to determine how much memory I wanted to use for Minecraft and entering the appropriate command at the command line every time I wanted to launch Minecraft, as well as feeling that existing launchers with a RAM allocation feature seemed a bit involved for such a simple purpose as this, I decided to develop an application that would allow me to perform this process with minimal user input.

NOTE September 28, 2012:
Development here has effectively ground to a halt; as such, I've released the utility under the GPL. If anyone has ideas as to the cause of the problem, or can provide me detailed information about their computer, please let me know, either by replying to this thread or emailing me from my website.

As I said, this has worked fine for me in all of the testcases I've had a chance to put together, so if the utility is something in which you'd be interested, it's still definitely worth a try to use it on your system.

My primary system, on which this works perfectly and consistently, is a Core i5 build with 8GB RAM, Minecraft 1.3.2, 64-bit Windows 7, Java 7, and .NET Framework 6 (or whatever the one that was released in 2008 was). I have tried this on a Core i7 8GB laptop with roughly the same software, and it worked there as well. However, I haven't had a chance to try and get this running on any VMs or other PCs, so I am working with a very limited sample set.

Just in case I do get a chance to put some more time into this, again, please send me any information you can about your computer, your setup, and whether or not this works. Positive samples are still samples nonetheless.

VB.NET 2008 source here.

NOTE August 22, 2012:
Two Three people have reported an "unable to access jarfile" bug; I have tested this WFM with 1.3.2 on W7 x64. I will investigate this further in the near future.

Old news:
Spoiler:

The interface is pretty intuitive, and I don't think it requires too much explanation here.
This has been tested on 64-bit Windows 7 with Minecraft 1.2.5 and 1.3.2. Further testing is planned.


Command-line options (added in v1.0) and shortcuts (fixed in v1.2):
A shortcut can be created on the desktop (this can be renamed or moved without breaking anything) to launch Minecraft with a certain amount of RAM.

For example, you can create a shortcut to launch Minecraft with 1GB of RAM.

The command-line switches are:
  • /rfnnn - start Minecraft with nnn bytes of RAM (1 MiB = 1048576 bytes)
  • /dnnn - launch the launcher, emulating nnn free bytes of RAM (for debugging purposes)

Installation:
Should be compatible with Windows XP and above.
Extract the executable from the ZIP file, and place it in the same folder as your minecraft.exe.
Alternatively, place it in whatever folder you like, and place minecraft.exe in the root of your C: drive.
Rename it to whatever you like.
Renaming or moving the executable will break any shortcuts you have created with it.


Download: PLEASE READ NOTE ABOVE (September 28)
All versions can be downloaded from TortoiseWrath.com.
The most recent version is at the top.


Changelog:
Spoiler:


Plans for future releases:
Spoiler:


v0.1 information:
Spoiler:


Screenshots:
Screenshots of v1.x:
Spoiler:

Screenshots of v0.1:
Spoiler:

Posted Image

Register or log in to remove.

#2

Lochar67
    Lochar67

    Tree Puncher

  • Members
  • 38 posts

Posted 23 June 2012 - 03:31 AM

Hmmm I never had a problem before til I added a couple of mods and now I am lagging a bit in sections but mine shows 512mb for ram,  I was curious where you can manually do this but a launcher might be nice for me, But I am a computer idiot and is there any damage to opening the throttle sort of speak to too much?

#3

TortoiseWrath

Posted 23 June 2012 - 03:45 AM

View PostLochar67, on 23 June 2012 - 03:31 AM, said:

is there any damage to opening the throttle sort of speak to too much?

The worst-case scenario with this would be the launcher closing itself without starting Minecraft. If that happens, simply enter a smaller number when you next use the launcher or launch Minecraft without it.
Posted Image

#4

MicroGames18

Posted 29 June 2012 - 01:40 PM

hey, i downloaded the file, but when i open it, it flashes and closes?

#5

TortoiseWrath

Posted 29 June 2012 - 07:57 PM

View PostMicroGames18, on 29 June 2012 - 01:40 PM, said:

hey, i downloaded the file, but when i open it, it flashes and closes?

Hmm, do you know what version of Windows you have?
Posted Image

#6

MicroGames18

Posted 01 July 2012 - 08:50 PM

View PostTortoiseWrath, on 29 June 2012 - 07:57 PM, said:

Hmm, do you know what version of Windows you have?
I have windows xp

#7

TortoiseWrath

Posted 01 July 2012 - 11:16 PM

After further research, I found that an update is needed for Windows XP (possibly Vista, as well, which I'll look into) in order to support this.

The update for Windows XP can be found here. If you receive the below error message when installing the update, install this update and try again.
Posted Image

This makes the utility run correctly:
Posted Image

I'll work on trying to find a more intuitive and less time-consuming method by which to run the utility on older operating systems.
Posted Image

#8

Creative_Kev

Posted 02 July 2012 - 04:27 AM

My brother uses another launcher not minecraft exe. so it doesn't work properly because it's trying to raise the ram of Minecraft exe. not his launcher i was wondering if there was an easy fix or if you could walk me through how to make the same thing but for another program because if could be quite usefull for more things than minecraft.

#9

TortoiseWrath

Posted 02 July 2012 - 04:49 PM

View PostCreative_Kev, on 02 July 2012 - 04:27 AM, said:

My brother uses another launcher not minecraft exe. so it doesn't work properly because it's trying to raise the ram of Minecraft exe. not his launcher i was wondering if there was an easy fix or if you could walk me through how to make the same thing but for another program because if could be quite usefull for more things than minecraft.

This will only work with Java executables - .jar files and .jar files compiled into .exe files.

If you open the .cmd file in Notepad, you can change the path to the launcher on the second line. However, this is not likely to work with launchers, as it will only allocate RAM to the launcher, which will not be passed on by the launcher to Minecraft.

If he is launching the minecraft.jar file directly, it may work to set that path to the minecraft.jar file (I haven't tested this).

I agree that this could be quite useful for other Java applications; however, this launcher does not set the minimum RAM allocation in the manner that is expected my Java, because that doesn't work very well for Minecraft, but could cause other Java applications to eat all of your memory.
Posted Image

#10

TortoiseWrath

Posted 04 July 2012 - 06:27 PM

Huge update is worthy of a bump.
Posted Image

#11

Leems_Segit

Posted 12 August 2012 - 09:34 PM

Doesn't work. It says "Error: Unable to access jarfile." I followed the instructions, and even tried the alternate.

#12

Svartelv
    Svartelv

    Tree Puncher

  • Members
  • 18 posts

Posted 20 August 2012 - 06:18 PM

View PostLeems_Segit, on 12 August 2012 - 09:34 PM, said:

Doesn't work. It says "Error: Unable to access jarfile." I followed the instructions, and even tried the alternate.
Idem.

#13

Apperian
    Apperian

    Tree Puncher

  • Members
  • 23 posts
  • Location: Maine
  • Minecraft: Swum

Posted 20 August 2012 - 06:36 PM

Do you plan upon making this open source? I would love to make a Mac version, but need to see the code to get an idea of how to do it.
http://adf.ly/3HCrS<-- Awesome Link of Awesomeness
I dabble in the arts of web development and minecraft modding.

#14

TortoiseWrath

Posted 23 August 2012 - 06:27 AM

Apologies for the delay; I've been having some troubles with my Internet, and wasn't able to reply.

View PostLeems_Segit, on 12 August 2012 - 09:34 PM, said:

Doesn't work. It says "Error: Unable to access jarfile." I followed the instructions, and even tried the alternate.

I'll investigate this; it's likely a problem with 1.3, but if either of you could tell me what version of Windows and/or the JRE you're running, I could try it on there. At this time, I only have 64-bit Windows 7 readily available for testing.

View PostApperian, on 20 August 2012 - 06:36 PM, said:

Do you plan upon making this open source? I would love to make a Mac version, but need to see the code to get an idea of how to do it.

I am planning on releasing this under the GPL, but I doubt that doing so would be much help in porting it to OS X, as it's written in VB.NET. However, I had been working on creating a GTK-based version of this, which will probably be of use in creating a Mac version.

For the record: I will NEVER personally release, test, or support anything on Mac. Seriously.
Posted Image

#15

AdamOIFVet

Posted 25 August 2012 - 12:08 PM

I'm on Windows 7 w/32-bit, MineCraft 1.3.2 and I get "Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit." When I try to do the .bat file trick, and I get "Error: Unable to access jarfile" for the notepad cmd prompt

#16

TortoiseWrath

Posted 28 August 2012 - 05:02 AM

View PostAdamOIFVet, on 25 August 2012 - 12:08 PM, said:

I'm on Windows 7 w/32-bit, MineCraft 1.3.2 and I get "Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit." When I try to do the .bat file trick, and I get "Error: Unable to access jarfile" for the notepad cmd prompt

Okay, I'll check some things in the next few days; don't expect anything to be released for at least a week, however - I have a small backlog of work at the moment, and need to get caught up with things that are sources of income. ;)
Posted Image

#17

TortoiseWrath

Posted 29 September 2012 - 12:53 AM

See note above. Posted Image
Posted Image