How do you know its working?
Check the Web Server Logs
You verify that Web Performance TrainerTM is working by checking the web server's log files, which are located on
the computer that is running your web server.
Apache:
If you're using Apache
with RedHat,
the log file is /var/log/httpd/access_log. You can execute a "tail -f access_log" command to watch exactly
what's happening during a performance test. If you have cookie tracking turned on, you'll see that each virtual
user has received its own cookie for the duration of each business case. Note that log analysis tools such as WebTrends
may not count users generated by our tool since we don't do IP spoofing, and some log analysis tools use the IP
to count users.
Another thing you can do with the logs is use the "wc" to check the
number of lines before and after the tests. Each line represents a hit, and the numbers will match up with the
number of hits reported by the test case if no one else is accessing the server at the same time the test was executed.
IIS:
Normally the log files are located directories under C:\WINNT\System32\LogFiles
. You can use whatever tool you like to view the files, but be careful the file isn't 100
megabytes in size before you load it into MS Word!
Realtime Statistics Displays
Its also possible to see what the web server thinks its doing performance-wise to verify what Trainer is telling
you.
IIS:
On Windows use the Performance Tool to monitor web server performance on the server itself. To start the program
on Windows 2000 use Start->Programs->Administrative Tools->Performance. On Windows NT the command is Start->Programs->Administrative
Tools (common)->Performance Monitor.
The way the program works is you have to select different statistics to view in
real time. Click on the "+" button bar to bring up the "Add Counters" dialog. Select "Web
Service" from the "Performance object" pulldown, and a list of statistics will be displayed. Start
by selecting "Anonymous Users/sec".
Apache:
Apache has
a much simpler tool that works on both NT and UNIX operating systems. See the documentation for
mod_status for more information.
Check your Database Logs
If you've written a web application that includes transactions, chances are you keep track of them in a database.
You can view the tables before and after a test to verify that the test tool is actually executing the transactions.
|