Saturday, August 13, 2011

Java uses all CPU while playing Minecraft

Question

I recently purchased Minecraft, but after I have been playing for about 5-10 minutes, the Java process uses all CPU power, leading to a sudden shutdown.

This is weird, because some months ago it ran without any problems.

Is there any way to fix this?

My OS is Ubuntu 11.04.

Answer

I am using Ubuntu too here are a couple of questions and suggestions ...

1) Are you using the open JDK? If you install sun's JDK and run the command sudo update-alternatives --config java and select Sun's JDK.

2) What speed is your processor and how many cores and how much RAM do you have? You might to specficy some command parameters when you run minecraft. Try giving minecraft more RAM by using the -Xmx and -Xms to give Minecraft more RAM at startup. You can read more about that here. For example the command I use is java -Xmx5000m -Xms5000m -jar minecraft.jar `

3) Try turning down your video settings. Turn down the render distance and switch the graphics settings to Fast.

No comments:

Post a Comment