Post date: Oct 21, 2012 5:48:47 PM
I found a great summary of useful Java command-line options to get the best use of memory and other tuning options.
Take a look at http://randomlyrr.blogspot.ca/2012/03/java-tuning-in-nutshell-part-1.html
The author has a good summary syntax diagram:
Another good article on when to use the different Garbage collection settings:
http://www.petefreitag.com/articles/gctuning/
I ended up using the following for my typical desktop apps:
-XX:+UseParNewGC
-XX:+UseParNewGC
Different choices are needed for server applications:
The articles linked above have good discussion of server needs.