Good way to capture / retry sessions from Apache Log?

For performance testing, I would like to capture some traffic from the production server and use it as the basis for re-requesting the request to the test server in order to simulate a realistic load in our development environment. These are all stateless requests, so there are no problems with cookies, sessions, etc.

Apache logging time all the time is reduced to 1 second, but this is not enough granularity for our peak time. What is the best way to capture smaller timestamps for playback? And is there some kind of ab like load generation program that can use this data to replicate the load?

+6
performance regression-testing
source share
3 answers

Use jmeter.

https://serverfault.com/questions/84041/how-can-i-replay-apache-access-logs-back-at-my-servers-to-do-real-world-load-test

http://jmeter.apache.org/usermanual/component_reference.html#Access_Log_Sampler

Regarding timestamped granularity, you will not achieve this. However, you can randomize the time slots in jmeter. Even if your production traffic logs show hits every second, you can tell jmeter will speed it up dramatically.

+3
source share

You can capture the network data of the production run, analyze it and then use it as a playback mechanism, comparing the results of the production run and the test run (if desired). Oren Eini (Ayende Rahien) talks about something completely similar on his blog .

I know that there is (or was) a tool that allowed you to perform load and performance testing based on recorded sessions, but I cannot find it right now: (.

+2
source share

You can also use BadBoy to capture sessions to play w / JMeter: http://www.badboysoftware.biz/docs/jmeter.htm

0
source share

All Articles