Community » Forums » Java - General > Java Performance Tuning
October 10, 2007 1:12:13 PM PDT (2 years ago). Seen 1,201 times.
Photo Aleksandar Gargenta
Partner
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 78
Can anyone recommend good tutorials on Java performance tuning?

The one I like is Java Tuning White Paper by Sun, but Google lists 5m+ hits on the subject. The question is what's good and what's just clutter?

What do you like?

I am mostly interested in general do-s and don't-s, rather than hacks (e.g. The Commando Pattern) that buy you some performance at the expense of good design practices - which sometimes can be justified.
Edited one time. Last edit by Aleksandar Gargenta on Jun 14, 2010 at 3:51:16 AM (about 11 weeks ago).
October 10, 2007 1:38:04 PM PDT (2 years ago)
Photo Aleksandar Gargenta
Partner
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 78
Of course, you could just switch to Java 6, and avoid having to do any kind of HotSpot/GC optimizations, because Java 6 is already 20-40% faster than the competition (including Java 5).

Having said that, there are still best-practices to follow when it comes to API use, data-collections, general programming principles, etc.

I guess the question on "performance tuning" can be asked by both developers (interested in code-level tuning) and system administrators (interested in JVM tuning). Java 6 addresses the latter.