Stop Making Assumptions! Learn How to Replay Your Production Traffic With JMeter
You probably make a lot of assumptions when creating a JMeter script. When testing applications, most of us create JMeter scripts based on assumptions about various user scenarios and try to emulate their workflows and generated requests. Then, you cross your fingers that your estimations were correct!
Wouldn’t it be great if you could just replay application usage from the previous week? No more assumptions, no more errors.
Well now you can! In a nutshell, you’ll need to retrieve Apache’s requests log from production (and any other environment), tweak it, and load it into JMeter. After the test configuration is complete, JMeter can replay requests, simulating real production scenarios.
How to Replay Your Production Traffic in 2 Minutes
I’ve put together a quick video to show you how. Watch it and learn how to replay your actual production environment while running a load test with JMeter. By doing this, you’ll be able to re-run a real life scenario to verify that your environment will perform well when testing an upcoming release.
Watch it now:
As you can see, it allows you to run real application traffic and usage while comparing an application’s behavior in two different versions. Replaying and examining issues is a really great way to learn about their causes and then fix and validate them accordingly. Also, don’t forget that some scenarios can’t be simulated, such as dynamic requests and time-dependent events.
That’s why this simple method is such a powerful one.
Liked this article? You might also find these useful: