beautypg.com

Improving performance – Apple WebObjects 3.5: Serving User Manual

Page 27

background image

Serving WebObjects

28

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:

-P http_port

The port number of your HTTP server (the default is 80).

-C count

Plays back the session count number of times instead of indefinitely.

-S sleep_time

The number of seconds to wait in between requests. The default is 0.

-p adaptor_path

Sends request using the adaptor_path instead of the recorded URL. For exam-
ple, suppose you recorded a session using a Netscape server whose cgi-bin direc-
tory is named

cgi-bin

and you want to play it back using the Microsoft Internet

Information Server, whose cgi-bin directory is named

Scripts

and has

WebObjects.dll

as

the adaptor name. Your adaptor_path is

/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.

Improving Performance

Performance is a major concern of website administrators. This section provides
a list of areas to check to achieve the maximum possible performance.

Configure your operating system so that it delivers the best performance
possible for your needs. Check your operating system’s documentation and
your web server’s documentation for performance tuning information.

When possible, use an API-based adaptor in place of the default CGI
adaptor.

The API-based adaptors have a performance advantage over CGI adaptors
in that the associated server can dynamically load the adaptor; servers using
CGI adaptors, on the other hand, spawn a new adaptor process for each
request and kill the process after the response is provided.

Make sure that the applications are written to perform optimally.