Here’s how to get the most realistic initial vm setting for your
game: run it with -verbose:gc and note the heap size when it stabilizes.
Then use that value as your initial heap - this will avoid many heap growing/full gc
cycles during startup.
Thanks,
Dmitri
Java2D Team