0

I am searching for a solution to test, how many requests my webserver could handle, until causing a load-time of more than 5s. Is there a possibility to manage this with Apache jMeter?

Server: SLES OS running a WordPress blog(Apache Webserver, MySQL)

Best regards Andy

Andy_R25
  • 25
  • 3

1 Answers1

0

It is. Example action plan:

  1. Record anticipated test scenario using HTTP(S) Test Script Recorder or JMeter Chrome Extension
  2. Perform correlation (handle dynamic values) and parametrization (if required)
  3. Add virtual users. It is recommended to configure users to arrive gradually, like starting with 1 and adding 1 each second. You can use Ultimate Thread Group which provides an easy visual way of defining ramp-up and ramp-down.
  4. Add Duration Assertion with the value of 5000 ms so it will fail the request if it takes > 5 seconds
  5. Use Active Threads Over Time and Response Times Over Time listeners combination to determine what maximum amount of users which can be served providing response time < 5 seconds.
Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Hey Dmitri, thanks for your detailed answer. I will try it directly :-) – Andy_R25 Jun 22 '16 at 15:24
  • I´ve created a test with the following actions: 1. Ultimate Thread Group: - Start Threads Count: 100 - Initial Delay, sec: 0 - Startup Time, sec: 30 - Hold Load For, sec: 60 - Shutdown Time: 10 2. Duration Assertion: Duration: 5000ms 3. Active Threads Over Time: - config not needed? 4. Response Times Over Time: - config not needed? 5. HTTP Request Defaults: Server name: wordpress-blog.com/ Port 80 Is it enough / is something missing? I can´t see the result inside the listeners :( – Andy_R25 Jun 22 '16 at 17:39
  • You're missing the most important one: [HTTP Request](http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request) %) – Dmitri T Jun 22 '16 at 17:53
  • hmm I already set up the http request defaults with server name and port. Isn´t it the same which you mean? – Andy_R25 Jun 22 '16 at 18:22
  • Could you look over my template please? I´ve uploaded it to Dropbox: https://www.dropbox.com/s/ak3k0n6ah23wrpl/5sek.jmx?dl=0 – Andy_R25 Jun 23 '16 at 06:45
  • How many times do I need to repeat that you **need** to add HTTP Request Sampler? – Dmitri T Jun 23 '16 at 11:44