Mobile app version of vmapp.org
Login or Join
Kaufman445

: How to replay traffic to web server from logs to profile / benchmark web app under real load? Is there a way to get recorder real network traffic to web server, e.g. from web server logs

@Kaufman445

Posted in: #LoadTesting #Performance #Profiling #WebApplications

Is there a way to get recorder real network traffic to web server, e.g. from web server logs (Apache), and replay this traffic to either profile web application (in Perl) under real load, or benchmark and compare speed of different implementations before choosing one or the other?

If it matters, webapp is written in Perl, and runs under plain CGI, FastCGI, mod_perl (via ModPerl::Registry), PSGI (via Plack::App::WrapCGI).

Crossposted from StackOverflow

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman445

4 Comments

Sorted by latest first Latest Oldest Best

 

@Dunderdale272

This may do what you want:
patrick.net/sprocket/rwt.html
It has an ultra-simple proxy for recording traffic, and an even simpler perl script for playing it back!

10% popularity Vote Up Vote Down


 

@Lee4591628

Depending on the scale, you will need a specific software, though a specific software is recommended for any performance/load/stress tests hence they can provide better results.

For medium traffic, I can recommend Apache Jmeter, or Selenium RC. I think replay Apache HTTP Server (yes, this is the fullname from our famous Apache) logs is easier to do into Apache Jmeter.

10% popularity Vote Up Vote Down


 

@Jamie184

Why would "real" data give you more information than a simulation that scales until the server breaks? At the very least you should be able to amplify the load signal from the load data to give a range on the performance... Also, seems like the log data would only profile the request, not the response rate from the client request, meaning one client request to close the connect super fast, the other might lag.

10% popularity Vote Up Vote Down


 

@Angie530

If you want to record and replay real traffic, I think the most direct solution would be to log full request headers to a file and then use a solution like curl to "replay" the requests against your webserver.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme