This tutorial explains how to profile Java code with Jakarta Tomcat, configured as a stand-alone servlet container, or configured as an add-on to Apache web server.

In this document, <OptItDir> is the directory where OptimizeIt has been installed. (ex: c:\OptimizeIt\OptimizeIt40D), and <TomcatDir> is the directory where Tomcat has been installed (ex: c:\jakarta-tomcat).
 

1) Configuring the tomcatWithOptimizeIt script

2) Starting Tomcat

3) Attaching from OptimizeIt

Now that Tomcat is running with OptimizeIt profiler, you can start OptimizeIt and attach to the virtual machine. Note: OptimizeIt does not have a "detach" function. If you press the stop button in OptimizeIt, Tomcat exits. After doing this, you need to restart Tomcat.

4) Filtering resources used by Tomcat

OptimizeIt provides filters for filtering resources used by Tomcat. In order to use filters, you must create an OptimizeIt setting for the profiling session,  turn on the Tomcat filter, and then attach by using the Attach now button or pressing the play button. Note: OptimizeIt settings can be saved for subsequent usage. This is done by using the save menu.

Copyright (c) 1997, 1998, 1999, 2000 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.