: 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
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
More posts by @Kaufman445
4 Comments
Sorted by latest first Latest Oldest Best
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!
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.
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.