5 Aug 2009 10:36
URLs from Apache log
Hi,
I think that one of the obvious usage of tool like Grinder would be
having a script reading data from a production apache (other httpd
server) logs to create a same same set of request on test box(s). Maybe
I'm a bit blind but I couldn't find such example in your script gallery.
Anyway it's not so hard to write such thing beside I have some
additional issues. The file is rather big (apache log 14 GB and cut
version - only URL - 1.2 GB), so it's not ideal to read such files in
one move. So, I decided to make it incremental, but I wanted to make
additional step and results of each chunk of data to be save as a
separate test. I wrote the following script, which 'nearly works' and
falls with following error message:
8/4/09 7:08:17 PM (thread 0 run 0 test 1): Aborted run due to Java
exception calling TestRunner
Java exception calling TestRunner
File "/home/grinder/projects/b_stress_test.py", line 22, in __call__
Caused by: java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)
[...]
The tail of out log file indicates that the first test has been finished:
[...]
Tests resulting in error only contribute to the Errors column.
Statistics for individual tests can be found in the data file, including
(possibly incomplete) statistics for erroneous tests. Composite tests
are marked with () and not included in the totals.
(Continue reading)
RSS Feed