Link to home
Start Free TrialLog in
Avatar of Adam Setzler
Adam SetzlerFlag for United States of America

asked on

Speed up Java applications running in Windows XP?

Is there a way to speed up Java applications running in Windows XP?  I do not have access to the pre-compiled code.  I am playing a Java game that consumes a lot of processor time and memory.
Avatar of Bart Cremers
Bart Cremers
Flag of Belgium image

One thing you could try is checking the Java version you're running. If you're still on Java 5 you should upgrade to Java 6 because there are a lot of performance improvements in Java 6.

Besides that it's very hard to give good tips of improving performance as I've got no clue of where processor power is going to:

1. Garbage Collection: If the program has to limited heap space it will spent a lot of processor time in collecting unreferenced objects (garbage). Increasing the maximum heap space of the Java process might help out. Playing with GC settings might help to, but that's a bit more advanced.

2. Swapping: If there's not enough system memory available for the Java process, it will start swapping it of to disk. Once this starts happening performance will go down.

3. Calculations in game: Nothing you can do here. The calculations could be needed, or they could be the result of poorly written code. In both cases you can only hope for another version or start upgrading your system.
Avatar of Adam Setzler

ASKER

Would creating a RAM disk be a good alternative?
ASKER CERTIFIED SOLUTION
Avatar of Bart Cremers
Bart Cremers
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial