Chetan
Chetan

Reputation: 2400

Jmeter & browser concurrent requests showing different results?

When I have given 500 concurrent users load via jmeter my server throwing error message but the same time I have called same request via browser showing proper response. How it is possible? Is there any settings in jmeter for avoiding same.

Upvotes: 1

Views: 855

Answers (2)

sbos61
sbos61

Reputation: 564

beside, what Dmitri described above, I would also check the actual throughput the server returns in either cases.

Throughput depends a lot on the timers you configured in Jmeter to simulate think time. Jmeter has no rendering and no javascript engine, so each thread is much much faster than a real browser.

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168072

It is hard to say what can go wrong without seeing your JMeter configuration, full server response, JMeter and application under test logs and network dump for browser and JMeter.

The whole idea of performance testing is mimicking real user as close as possible, so you need at least

  1. Add HTTP Request Defaults and set JMeter to:

    • Download embedded resources
    • Use concurrent pool of 2-5 threads
  2. Add HTTP Cookie Manager
  3. Add HTTP Cache Manager
  4. Add HTTP Header Manager
  5. Correlate any dynamic parameters
  6. Simulate any specific application behaviour (i.e. AJAX calls)
  7. etc.

In addition to above recommendations: ideally given "good" JMeter you shouldn't see any "response messages", you should see a number of errors in final report so double check you:

Upvotes: 3

Related Questions