Table of Contents Previous Section
The WebObjects package comes with a special adaptor that allows you to record a session and a tool that helps you play back a recorded session. Using these tools, you can test your application setup to determine if you have the appropriate number of instances running, the appropriate amount of memory allocated, and so on.
Note: You cannot use the recording and playback tools on applications that use HTML frames.
To use the recording and playback performance testing tools, do the following:
MyApp -a WODefaultAdaptor -n instanceNumber -c -browser OFF
http://localhost/cgi-bin/WebObjects-Recording/MyApp?file=completePath
where completePath is the directory in which you want to store the recorded session. The adaptor appends a .rec extension to the path you specify.
Important: During recording, only one user may be accessing the application. Your session must not include any backtracking to a previously displayed page. If you backtrack, you'll get unpredictable results.
As you run the application, the WebObjects recording adaptor records each request and response to a separate file in the directory you specified.
WOPlayback -R completePath.rec -H hostname
where completePath.rec is the directory that contains the recorded session and hostname is the name of the host on which you want to run the recorded session.
The WOPlayback tool plays the recorded session repeatedly until you explicitly stop it (for example, by pressing Control-C in a command shell window). It is possible to run several versions of WOPlayback at the same time to put more load on the server.
If you want, you can specify other options to the WOPlayback tool as well. The following is a list of the available options:
/Scripts/WebObjects.dll
If you'd like to improve the average response time that resulted from this test, read the next section, "Improving Performance" for guidelines on how to do so.