Table of Contents Previous Section
Logging and Analyzing Adaptor Activity
If an adaptor sees that a file named logWebObjects exists in the temporary directory, it will log its activity in WebObjects.log in that same directory. Logging adaptor activity significantly decreases performance. Use this feature only if you suspect something is wrong.
The temporary directory depends on the platform:
You can analyze the information in the log to find out such things as which applications are being requested, which applications are being autostarted, and what the HTTP headers of requests are. You can also use the log to verify if adaptors are properly configured for load balancing. For example, the following excerpt includes a warning message printed when the adaptor cannot find the WebObjects.conf file in the expected location.
INFO: -- WOServerAdaptor: Load Balancing for Examples/TimeOff
WARN: -- WOServerAdaptor: "No such file or directory" occurred while
opening the configuration file C:\NETSCAPE\ns-home\httpd-
80\config/WebObjects.conf
The procedure is:
- Start a command shell window (on NT use the Bourne Shell in the WebObjects program group).
- Change to the temporary directory (using the cd command).
- Enter the following command to create the logWebObjects file:
touch logWebObjects
- Enter the tail command to print the current activity in the adaptor to standard output (the shell window):
tail -f WebObjects.log
Table of Contents Next Section