This tutorial explains how to profile Java code with ATG  Dynamo 4.5.0 and 5.1.
In this document:

1) Adding the OptimizeIt servlet to Dynamo

First you need to add the OptimizeIt servlet to your Dynamo server.

2) Configuring the batch file dynamo_OptIt.bat

3) Starting Dynamo for profiling with OptimizeIt

To start Dynamo, just invoke the dynamo_OptIt.bat script.

4) Starting the OptimizeIt servlet

  • Invoke the servlet from a web browser. The URL should look like http://localhost/OptimizeIt.dyn
  • In the HTML page that the servlet provides, change the port number if necessary.
  • Select the "Disable memory profiler" option if you only want to focus on CPU usage.
  • Select "Enable OptimizeIt's audit system API" if your code enables/disables the profiler by using OptimizeIt's audit system API
  • Press the "Start OptimizeIt Audit System" button to start the profiler.
  • Once this operation is done, you should see a message in your web browser indicating that OptimizeIt's audit system is running.

    5) Attaching from OptimizeIt

    Now that Dynamo 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, Dynamo exits. After doing this, you need to restart Dynamo server.

    6) Filtering resources used by Dynamo

    OptimizeIt provides filters for filtering resources used by Dynamo. In order to use filters, you must create an OptimizeIt setting for the profiling session,  turn on the Dynamo 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, 2001 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.