spring - how to limit request per second in apache benchmark tools -


i'm trying stress test spring boot application, when run following command, ab doing trying give out result the maximum application holds. need check whether application hold @ specific request per second.

ab -p req.json -t application/json -k -c 1000 -n 500000 http://myapp.com/customertrack/v1/send 

the request per second given above command 4000, actually, lot of records buffered in application means can't hold rps. could tell me how set specific request per second in ab tools? thanks!

i highly recommend using jmeter. allow configure request/min limit.

specifically, make use of throughput constant timer:

jmeter provides useful timer component configure or set constant throughput value test application load. called jmeter throughput constant timer.

i have used generate 30 requests per second. see configuration below:

<constantthroughputtimer guiclass="testbeangui" testclass="constantthroughputtimer" testname="constant throughput timer" enabled="true">   <stringprop name="calcmode">all active threads in current thread group</stringprop>   <doubleprop>     <name>throughput</name>     <value>1800.0</value>     <savedvalue>0.0</savedvalue>   </doubleprop> </constantthroughputtimer> 

there plethora of information online describing how use jmeter, found this site particularly useful.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -