Laukik Kakade
Laukik Kakade

Reputation: 81

I want to know how many request per second my server can handle?

I want to know how many HTTP requests per second my server can handle using Jmeter.

I got throughput 128/mins which means 2/3 req per sec. but something is wrong in my sampler can you tell what I need to do to test the login URL?

Upvotes: 6

Views: 6206

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

Hammering a login page doesn't have anything in common with the load testing as load testing is checking your application against the anticipated load.

If you're trying to determine the maximum number of requests per second your server can handle - this is some form of stress testing

In both cases you should come up with a realistic test scenario which would represent real users using real browsers like:

  1. Record your scenario using JMeter's HTTP(S) Test Script Recorder
  2. Perform parameterization and correlation
  3. Run your test with several virtual users/iterations and inspect request/response details using View Results Tree listener to ensure that your test is doing what it is supposed to be doing
  4. Once you're happy with your test script - disable the View Results Tree listener and run full load test using command-line non-GUI mode
  5. Analyze your results using JMeter Reporting Dashboard

With regards to your goal I would recommend increasing the load gradually so you would be able to correlate the increasing number of users with the increasing throughput.

When you reach the point where you're adding more users and the throughput doesn't increase - it means that the application cannot handle more load hence that would be the maximum number of users/requests per second your application can handle.

Upvotes: 5

Related Questions