Good way to capture/replay sessions from Apache Log?
Asked Answered
R

3

7

For performance testing, I would like to capture some traffic from a production server and use that as a basis to replay the request to a test server in order to simulate a realistic load in our development environment. These are all stateless queries, so no issues regarding cookies, sessions, etc.

The Apache log timestamps everything down to a 1 second resolution, but that's not fine enough granularity for our peak times. What's the best way to capture more fine-grained timestamps for replay? And is there some ab-like load generating program that can use this data to replicate load?

Robert answered 16/4, 2010 at 21:1 Comment(0)
E
4

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

As far as granularity with timestamps, you're not going to get better than that. However, you can randomize the time slots within jmeter. Even if your production traffic logs show hits every second, you can tell jmeter to speed that up drastically.

Experimentalize answered 16/4, 2010 at 21:27 Comment(0)
S
2

You could capture the network data of a production run, parse it, and then use that as a replay mechanism comparing the results of the production run and the test run (where desired). Oren Eini (Ayende Rahien) talks about something quite similar on his blog.

I know that there is (or was) a tool that allowed you to do load/performance testing based on recorded sessions, but I can't find it right now :(.

Select answered 16/4, 2010 at 21:22 Comment(0)
I
0

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

Idonna answered 13/3, 2011 at 16:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.