LAB-1205: Java Application Performance Analysis
Exercise 0: Install and Configure Lab Environment
Learning goals of this exercise
In this exercise you will learn:
- How to prepare your computer for the javaperf hands-on lab
- NOTE: you can skip this step if you are using one of the lab
machines provided at JavaOne 2006
Background for this exercise
None -- this is the beginning!
Steps to follow (on a Solaris workstation at JavaOne 2006)
- 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)
- 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).
- 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 ).
- Install the jvmstat 3.0 bundle.
- 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.
- 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.
- 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
- You will notice at the top of each exercise page there is a navigation bar with the following buttons:
| First Exercise
|
|
Previous Exercise
|
|
Next Exercise
|
|
Last Exercise
|
|
Overview Page
|
- Continue on to Exercise 1