How can I simulate 1000 concurrent users as real?

I need to do load testing for a web service. This requires at least 1000 concurrent users.

I know that some testing tools (e.g. JMeter) can mimic a collection of simultaneous users with multiple threads. But these users do not work at the same time.

If I run the JMeter program on a machine with two processor cores, only 2 simultaneous users are active at a time, although there are several threads generated using the testing tool.

Is there a way to create true concurrent users?

+6
source share
3 answers

From a web service perspective, these users are simultaneously. A dual-core processor can easily switch between 1000 threads; in most cases, the stream will wait for network I / O, so it is very similar to how it will work if you actually had 1000 cores.

So JMeter should be fine. It is possible that if the test thread must carry the load of working with an intensive processor, this may lead to bias in the results. But usually test threads just wait for an answer.

+11
source

You can try * nix tool Siege after reading Frequently Asked Questions about concurrent users .

+3
source

You can also look at Tsung , which supports SOAP using HTTP mode .

0
source

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


All Articles