How to limit request per second in apache testing tools

I am trying to emphasize the test of my Spring boot application, but when I run the following command, what it does abis try to give the result to my maximum application. But I need to check if my application can accommodate a specific request per second.

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

The query per second above is 4000, but in fact, in my application, a lot of records are buffered, which means that it cannot hold as many RPS. Can someone tell me how to set a specific query per second in ab tools ? Thanks!

+9
source share
2

, , AB. .

, , .

https://github.com/rakyll/hey

100 .

hey -D req.json -T application/json -c 1000 -q 100 -n 500000 http://myapp.com/customerTrack/v1/send

0

JMeter. /.

, :

JMeter . JMeter Throughput Constant Timer.

30 . . :

<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>

, JMeter, .

-1

Source: https://habr.com/ru/post/1016353/


All Articles