Sun Microsystems Logo
First Previous Next Last Overview
 

LAB-1205: Java Application Performance Analysis

Exercise 20: Demonstrate the Font 2D Demo application

Learning goals of this exercise

In this exercise you will learn:

Background for this exercise

Please see Exercise 1 for an overview of running the javaperf GUI launcher.

We have used only the Java 2D Demo application up to this point.  The javaperf GUI launcher can be adapted to use other applications as well.  This is an example of using the Font 2D application.

Steps to follow

  1. The JAVAPERF_HOME/conf/exer20.properties file contains:
    # javaperf hands-on lab properties for an exercise
    exer.jar=${demo.home}/jfc/Font2DTest/Font2DTest.jar
    exer.logs=${javaperf.logs}/exer${exer.num}
    exer.log=${exer.logs}/Font2DTest.log
    exer.name=${exer.num}: Demonstrate the Font 2D Application
    exer.compiler=
    exer.heap=-XX:PermSize=12m -XX:MaxPermSize=12m -XX:NewSize=4m -XX:MaxNewSize=4m -Xms12m -Xmx12m
    exer.gc=-XX:+DisableExplicitGC
    exer.other=
            

  2. Here are the settings for this exercise:
    compiler=
    heap=-XX:PermSize=12m -XX:MaxPermSize=12m -XX:NewSize=4m -XX:MaxNewSize=4m -Xms12m -Xmx12m
    gc=-XX:+DisableExplicitGC
    other=

  3. Click [Start]. You will see the Font 2D Demo application start...

  4. Notice that not much happens in this application as compared to the Java 2D demonstration.  You can click around all over the place and hardly generate any garbage!

  5. Quit the Font 2D Demo application by clicking [Stop]

Summary

This is an example of using the javaperf GUI launcher to visualize the behavior of a different application.

Next Steps