Sun Microsystems Logo

 

 
LAB-1205: Java Application Performance Analysis

Expected duration: 60 minutes

Performance is a primary concern for everyone who deploys Java applications. The HotSpot Java Virtual Machine has included lightweight performance monitoring features for several releases which are now included in J2SE 5.0. These features along with the visualgc tool which is part of the separate jvmstat 3.0 bundle form the basis for this hands-on lab. In this lab developers will use jvmstat tools to learn the fundamentals of Java performance tuning.

This document is also available in PDF format: javaperf.pdf

Lab exercises:

This lab is made of the several exercises each of which takes about 3 minutes. The sequence of exercises is intended to highlight a progression of tuning.
                0. Things to check before you start the lab
  1. Young generation too small
  2. Young generation too big
  3. Young generation sized just right
  4. Bad young/old gen ratio
  5. Old generation too small (it really is too small!)
  6. Old generation too big
  7. Permanent generation too small
  8. Permanent generation sized just right
  9. Avoid explicit GC's (and get compilation information)
  10. Use the server compiler (and get compilation information)
  11. Use AggressiveHeap (w/parallel collector for server applications)
  12. Use AggressiveHeap (but tune for maximum memory consumption)
  13. Use the concurrent garbage collector
  14. Use the concurrent garbage collector (tune tenuring and survivor ratio)
    please send your feedback to handsonlab06-javaperf@yahoogroups.com
Going Further (extra credit):
Resources:
Where to send questions or feedback on this lab:

Start Exercise 0

To start Exercise 0, please click on the link below: