mojira.dev
MC-3303

Java Memory Leaks

Hello

I bought a laptop a few months back that is more than capable of running Minecraft in 64bit. I can supply more specs if required.

Whenever I boot Minecraft, javaw.exe takes up 400,000mb RAM (normal) and steadily climbs. In 15 minutes time, Java will have taken up all 8GB RAM, crashing my PC. Obviously this causes the frame rate to fluctuate. I have tried the following;

*Limiting the amount of RAM Java can take up upon execution of an application
*Installing 64 bit or 32 bit versions of Java on my 64bit machine
*Switching off and on features in the game
*Re installation of Java
*Uninstalling any conflicting apps (but nothing else uses Javaw.exe)
*Putting javaw.exe to high and realtime priority
*Changing the active cores from 2 to 1
*Using the web based applet in case the launcher was causing the problem
*Rolling back Java RE versions (tried current stable release and Java Runtime 5 stable)

None of this worked on vanilla Minecraft. Please help. There are other noted cases noted here (http://www.minecraftforum.net/topic/1335721-minecraft-125-memory-leak/).

Once again, please help. You can probably guess how desperate I am to play Minecraft again after my last computer broke.

Thanks in advance
Jack

Attachments

Comments 25

Please post some relevant information. What are your computer specs? What version(s) of java are you installing?

Specs are as follows:

Laptop name: ASUS K54C
Processor - Intel Pentium CPU B960 @ 2.20GHz
OS: Windows 7 Home Premium 64 Bit
RAM: 8GB (Total physical memory 7.91GB)
Availible Virtual Memory: 12.9GB
Graphics: Intel "HD" on-board GPU

As stated, Java tried has been Java 7 Update 9 (latest)and I also tried Java 5 (without updates) but got the same results.

For some reason, this bug is listed as minor. It is not for me as this has persisted since August 2012 when I got this laptop and there are many similar problems around the web saying that it breaks peoples games. There is a link in my first post.

Minecraft doesn't get 8gb ram allocated. How are you starting it? Must be either a custom commandline or launcher.

Like I say, it doesn't matter how much it has allocated. Even if I do try starting it with a custom launcher that limits the RAM allocated to, say 800MB, Javaw.exe will still go right over this.

It's completely vanilla using the Minecraft launcher to start, but the web interface makes no difference. If you goto the link in my original post, some people are speculating it may be the garbage collector not functioning properly. If this is the case, it is out of the end users control.

Thanks for your replys, guys. I do appreciate this.
Jack.

15 more comments

I'm also having major major memory leaks in 1.6.2. I've had this since 1.6.1, and it happened more when I had lots of mobs in water/severe amounts of particles. Now in 1.6.2 and launcher version 1.2.1, I'm having severe memory leaks of 200mb in seconds. Minecraft wasn't like this until 2-3 weeks ago, max (hadn't been playing due to massive lag regardless of memory leak).

I'm running Windows 7 64bit, Java 7 Update 25 for both 32 and 64-bit versions. Doesn't matter what settings I have in-game.

Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Yes, this is a concern in 1.7.4 as well. I have an 8GB ram and 64 bit java all running every other app fine for extensive periods, but Minecraft leaks really badly after about 15 mins. I have to keep leaving and opening up task manager in Windows 7 and keep ending process even after I quit the game, it still runs out of control. allocating more memory won't solve it either. it prolongs the inevitable which is worthless. I really checked up on everything with javaw and nothing else but Minecraft causes this to happen. I run the most basic simple default instllment of vanilla Minecraft too. nothing special. still happens.

Is this still a concern in the current Minecraft version 14w18a / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

This ticket is incomplete without the requested information, no response has been received within a reasonable time and we are assuming the issue has been resolved. If you are still experiencing this issue, we can reopen it at your request.

Please review the guidelines before reporting issues.

Jack Caldwell

(Unassigned)

Unconfirmed

Minecraft 1.4.4, Minecraft 1.4.5, Minecraft 1.7.4

Retrieved