0

I want to take logs of the production server and them in Jmeter to replicate real life traffic that is received on the production environment. So that I'll not be making any assumptions while running the Jmeter script.

1

That is easier said than done. Will you be spinning up a new virtual user for each IP address or session ID encountered? How will you handle the substitution of dynamic elements present in the log which are no longer appropriate for execution? What about elements which are cached but which do not show up in the log?

You are much better off to take the information found in the logs and process them with a tool like Splunk to build a user profile of both business processes and user load which has an objective basis for your test.

0

It depends on what "server" you're running.

If you're lucky enough to have your application running on Apache Tomcat you will be able to use Access Log Sampler which comes with JMeter.

If not - there is still an option to parse your log with Beanshell PreProcessor and change HTTP Request parameters on the fly. See Stop Making Assumptions! Learn How to Replay Your Production Traffic With JMeter article for example configuration.

If you won't be able to perform relevant JMeter setup update your question with a log part containing few requests so we could take a look

  • I have apache server and I can access the logs as well. I saved the logs in a text file and put that in Jmeter using the Access Log Sampler but this doesn't seem to work for Post requests. Apparently, only GET requests are simulated using this method as we can't send the POST data while accessing the logs as logs don't have the POST data. Is Access Log Sampler only for GET requests? – Rohan Kalia Apr 26 '16 at 5:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.