Java performance tuning pattern

Here's a Java performance tuning pattern I've used with great success before:

  1. Measure the performance of the Java application.
  2. Identify the location of any performance bottlenecks.
  3. Think of a hypothesis for the cause of the bottleneck.
  4. Create a test to isolate the factor identified by the hypothesis.
  5. Test the hypothesis.
  6. Alter the application to reduce the bottleneck.
  7. Test that the alteration improves the performance.
  8. Repeat from step 1.

While I'm at it, here's a figure that I used in a Java Performance Tuning seminar in 2004. This shows where profiling fits in with your regular application development lifecycle.

Credit for this figure belongs to whoever did "The Black Art of Benchmarking" at Java One in 2003. I think it was given by Timothy Cramer, Tom Marble, and Menasse Zaudou.

 

Add new comment

Anonymous format

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul type> <ol start type> <li> <pre>
  • Lines and paragraphs break automatically.