Reputation: 33384
I am learning Jmeter tool for load & perfomace testing
and while testing a Geoserver rest api I am unable to set up configuration for throttling limit test .
Lets have an example:
I need to test throttling limit of Rest API can accept the request 500 requests/second
If user send request more than 500 requests let say 501 requests/second
script should throw the error code 429 too many requests.
While doing some research I found that Synchronizing Timer can be used.However couldn't able to manage.
My Question is how can I achieve that Using Jemeter? Any help/guidance will be much appreciated.
Upvotes: 2
Views: 2026
Reputation: 168002
With the Synchronizing Timer you cannot achieve 500 requests per second, you can achieve 500 requests at the same moment
If you need to send X requests per second it would be better idea to go for Constant Throughput Timer or Throughput Shaping Timer, this way you can control how many requests per second JMeter will be sending and define pass/fail criteria for your test plan via Assertions basing on the current throughput
Upvotes: 3