So, I'll try to give a full breakdown of my problem so as to make the diagnosis easier.
I downloaded and started playing the offline, single player version of Minecraft. Great game, lots of fun. However, after playing the game for anywhere from 10 minutes to over 45 minutes, my entire computer just freezes, forcing me to restart my computer.
When I check the task manager, java.exe is using a lot of memory, and forcing my CPU percentage use up above 40% even when just sitting at the main menu, with it going well above 80% at times when actually playing.
I've tried updating Java (running the most recent version now), I've tried completely removing Java and reinstalling, and I've tried closing every other program, and yet the problem persists.
I read a couple forums online, and this is apparently a relatively common problem, but no solid solutions seemed available, and any tips they offered didn't seem to work.
I'm at a loss. I want to continue building my glorious castle, but I've lost 3 saves already from the constant crashing. What can I do?
Posts
In java you can set min/max heap size. If you set them the same it won't have to keep resizing it, which can speed things up. Also make sure you set it low enough as not to kill your computer (as you have seen), but high enough that the game doesn't run like shit.
This assumes it's a problem with java and not a memory leak in native libraries.
java -Xms512m -Xmx512m
That sets min/max to 512mb.