Sun Microsystems Logo
First Previous Next Last Overview
 

LAB-1205: Java Application Performance Analysis

Exercise 0: Install and Configure Lab Environment

Learning goals of this exercise

In this exercise you will learn:

Background for this exercise

None -- this is the beginning!

Steps to follow (on a Solaris workstation at JavaOne 2006)

  1. When you login to a Solaris Workstation with the username 1205 a window session should start automatically that shows a web browser (with this documentation) and starts the Java Performance Analysis GUI launcher.

Steps to follow (for Bring Your Own Laptop or installation after JavaOne 2006)

  1. This lab is supported on Solaris, Linux and Windows. Minimum requirements for Windows are Windows 2000 and later installed on the NTFS filesystem (FAT32 is not supported).
  2. Install the Java JDK 5.0. Please note that the JDK which includes the "demos" is required -- a JRE is not sufficient. Remember to turn off any virus checking software before you install Java. On windows a "public" JRE is often installed
    (e.g. C:\Program Files\Java\jre1.5.0_02 ) as well as the JDK
    (e.g. C:\Program Files\Java\jdk1.5.0_02 ).
  3. Install the jvmstat 3.0 bundle.
  4. Download and unzip lab exercises material (e.g. unzip 1205_javaperf.zip ).  You should now have a directory like javaperf with the contents of this hands-on lab.
  5. Start the Java Performance Analysis GUI launcher
    • Solaris and Linux: set the environment variable JAVA_HOME to point to JDK 5.0 or add the JDK 5.0 bin directory to your PATH and start the script javaperf.sh
    • Windows: open Windows Explorer and find the javaperf/lib directory. Double click on javaperf.jar. Alternatively you can start the script javaperf.bat.
  6. Select File | Preferences and confirm that the settings are correct.
    • JAVAPERF_HOME the location of this hands-on lab
    • JAVA_HOME the location of JDK 5.0
    • DEMO_HOME the location of the demo directory for JDK 5.0
    • JVMSTAT_HOME the location of the jvmstat 3.0 directory

Summary

Now you are ready to begin the Java Performance Analysis Hands-on Lab!

Next Steps