简体   繁体   中英

100k HTTP Requests simultaneously

我必须测试我的其余API,以便在500ms内同时进行100k个API调用。有什么想法可以模拟它吗?

I would suggest to use JMeter too, it enable your test to create multiple concurrent jmeter server. Just to be clear you can control multiple remote JMeter engines from a single JMeter client and replicate a test across many computers and thus simulate a larger load on the target server.

To be honest, your target is quite high (100k API calls simultaneously within 500ms), ie you'll need a lot of jmeter servers. When you create stress tests, there are not magical recipes, guides or manuals. Trial and error is a fundamental method of solving this kind of problems.

In my experience, I first try with few concurrent users and see how the server react. Then increase the number of concurrent users till to reach an intolerable performance decrease or, worst, a bottleneck .

http://jmeter.apache.org/usermanual/remote-test.html

在此处输入图片说明

You will obviously need a load testing tool which can be run in a distributed mode, ie 1 controller and X load generators executing the same test.

  • Grinder - scripts are written in some Python dialect
  • Apache JMeter - this guy doesn't require any specific knowledge, you can create tests using simple GUI
  • Tsung - is written in Erlang , known for capability to produce high loads even on low-end hardware.

See Open Source Load Testing Tools: Which One Should You Use? article for more information on above tools.

JMeter

The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM