The following examples use UNIX syntax. Adjust the syntax accordingly for Windows. We also presume that your CLASSPATH includes $DYNAMO_HOME/lib/classes.jar.

Checking Availability of Dynamo

Suppose you want to see whether your ATG application is responding. A single request on a single thread, using a very simple page, would be sufficient for this test:

java http://examplehost:8840/test.jhtml 1 1

If your application is responding, you should see output like the following (the times will vary):

Time = 521 ms (1.91 requests/s; average latency = 521 ms)
0 errors out of 1 request

The time output reports the total elapsed time in milliseconds, the number of requests per second, and the average time per request, in milliseconds.

Generating a Typical Load

Using multiple concurrent threads, each making repeated requests, will generate a sustained load on the Dynamo server:

java http://examplehost:8840/test.jhtml 10 25

In this example, 10 threads are used, each making 25 requests, for a total of 250 requests, each of which uses its own session.

Playing Back a Script

The previous examples generate a number of simultaneous requests for the same page. For a more realistic usage scenario, you can use URLHammer to run a script of more complex user behavior. A script file can be as simple as a list of relative URIs (one per line). See Recording a Script for a simple way to construct a script, and Editing a Script for details on the syntax and semantics. The following command plays back the script myscript.txt one time, using one thread, making requests from the default Dynamo server port:

java myscript.txt 1 1 -script -server
loading table of contents...