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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bart CremersJava ArchitectCommented:
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.
adamsetzlerAuthor Commented:
Would creating a RAM disk be a good alternative?
Bart CremersJava ArchitectCommented:
A RAM disk will only give a performance improvement if the game writes/reads a lot to/from disk. A Java program requires a bit longer startup time to load up the VM and the needed classes, but after that it will keep everything in memory.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Computer Games

From novice to tech pro — start learning today.