The URLHammer program is a Java utility. URLHammer makes repeated page requests, allowing you to simulate the effects of load on your Oracle Commerce Platform application. The utility detects and reports HTTP errors, but performs no validation of the HTTP response itself. URLHammer supports HTTP cookies. You can use it to submit forms by playing back scripts (see Using the Recording Servlet). URLHammer is run from the DOS or UNIX command line. It runs in a separate JVM from the Oracle Commerce Platform. For the best results, we recommend running URLHammer on a separate machine from the server you are testing.

To run the URLHammer program:

  1. Set your CLASSPATH to include the directory <ATG11dir>/DAS/lib/classes.jar.

  2. Run the following command:

    java atg.core.net.URLHammer [arguments]

For example:

java atg.core.net.URLHammer http://examplehost:8840/ 5 10 -cookies

This creates five different threads, each of which represents a separate session that requests the specified URL 10 times (50 requests total).

You can configure URLHammer using several command line arguments that are described below; you can also use the -usage argument to get the current list of arguments. The -cookies argument makes URLHammer parse the Set-cookie headers and return cookies that it receives in all subsequent requests. If you do not use the -cookies argument, the Oracle Commerce Platform creates new sessions for each request. Each thread has its own set of cookies. Thus, the above example creates 5 sessions and executes 10 requests in each.


Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices