This tutorial explains how to profile an application that uses Java Remote Method Invocation (RMI).
In this document, <OptItDir> is the directory where OptimizeIt has been installed. (ex; c:\OptimizeIt\OptimizeIt302D)

1) Setting up the OptimizeIt audit system

Modify your CLASSPATH and PATH environment variables to include the following directories:
CLASSPATH:
<OptItDir>\lib\optit.jar
PATH:
<OptItDir>\lib

2) Launching your application

Start your application from the command line with OptimizeIt's audit system:
 
 
If you use JDK 1.1
Invoke the audit system with the following options :
-noclassgc -Djava.compiler=NONE -DOPTITDIR=<OptItDir>
Add also any needed options to the invocation. Example :
 c:>java -noclassgc -Djava.compiler=NONE -DOPTITDIR=<OptItDir> -Djava.rmi.server.codebase=http://localhost/jyc/classes/ -Djava.security.policy=./policy intuitive.audit.Audit examples.hello.HelloImpl
If you use JDK 1.2
Invoke the audit system with the following options :

-classic -Xnoclassgc -Xrunoii -Djava.compiler=NONE -DOPTITDIR=<OptItDir>

Add also any needed options to the invocation. Example :

 c:>java -classic -Xnoclassgc -Xrunoii -Djava.compiler=NONE -DOPTITDIR=<OptItDir> -Djava.rmi.server.codebase=http://localhost/~jyc/classes/ -Djava.security.policy=./policy intuitive.audit.Audit examples.hello.HelloImpl

3) Attaching from OptimizeIt

Now that your application is running with OptimizeIt profiler, you can start OptimizeIt and attach to the virtual machine. Copyright (c) 1997, 1998, 1999 Intuitive Systems Inc. All rights reserved. Specifications subject to change without notice.
OptimizeIt is a trademark of Intuitive Systems, Inc.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. All other brand
names and products are trademarks or registered trademarks of their respective holders.