ZaSz
2009-07-16 22:42:16
Here is a solution.
Also, do not set it for more than half of your computers available ram.
Ex. If you have 1 gig ram. Do not put it more than 500M
Btw, even if you run java fine on your pc. This is handy cause things can be inputted in memory and slow down java.
Happy autoing without freezes :D
EDIT: Also, you may need to restart pc to see the changes.
The default for Sun Java is to allow only 64MB of RAM for applets. While this is usually enough for most games, some push quite close to the limit and one or two occasionally exceed it. To get better performance out of the games that push the envelope, and reduce the frequency of hangs, you should increase the heap allowed.
Open the Java control panel. For Windows, this should be in the Control Panel. For Linux, it's $JAVA_HOME/jre/bin/jcontrol. For Apple OS * it's in Applications | Utilities.
Select the "Java" tab. It has a section for applets and a section for applications. Click the "View" button in the applet section, and add the following text to the "Java Runtime Parameters" field for the JVM you use:
-Xmx256M
(INCLUDE the "-" mark and all letters.)
That allocates 256M - if you have lots of RAM then feel free to make it higher.
Also, do not set it for more than half of your computers available ram.
Ex. If you have 1 gig ram. Do not put it more than 500M
Btw, even if you run java fine on your pc. This is handy cause things can be inputted in memory and slow down java.
Happy autoing without freezes :D
EDIT: Also, you may need to restart pc to see the changes.