Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Recently i installed a website that had too many requests and it was too slow. Many improvements have been made to the web site code and we've also bought a new server.

I want to test the new server with exactly the same requests that made the old server slow. After that, i will double the requests, make new tests and so on.

These requests are logged in the apache log files. So, I can parse those files and make some kind of script to make the same requests. Of course, in this case, the requests will be made only by my computer against the server, but hey, better than nothing.

Questions: - is there some app that does this already? - would you use wget? ab? python script?

Thanks!

share|improve this question
1  
Apache log files dont usually supply request headers or the body of POST requests. Have you factored this into your replays? –  Matthew Ife Nov 13 '11 at 16:00
    
+1 to @mife - probably what hurt you the most was what was in those post/query parameters. There are apps out there that allow you to create synthetic tests from real user traffic, but if all you have are logs, sounds like it's too late for that. –  sandroid Nov 13 '11 at 16:03
add comment

2 Answers 2

up vote 3 down vote accepted

I've used jmeter for this in the past, but it requires that your logs are in extended format.

If this is not the case for you, try something like:
https://github.com/chromano/apache-log-replay

share|improve this answer
    
Thanks! I used apache-log-replay. I had to alter the script because of the log format, but it works, although it seems slow for request made in the same second. –  daigorocub Nov 13 '11 at 18:07
add comment

Tsung - is the distributed load testing tool. It can use apache log to create test plans.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.