I want to load test a URL by hitting it few hundred times at same millisecond . I tried JMeter but I could hit 2 request at same millisecond. This seems to be problem that my machine cant create threads fast enough . Is there any solution to the issue ?
相关问题
- JMeter - Using Variables from other BeanShell Pre/
- JMeter - Detecting a TransactionController Sampler
- Access denied issue while recording Jmeter script
- Extract Location from Response Header with JMeter
- How to generate a cookie and send it in a request
相关文章
- Jmeter如何做并发测试?需求:从Excel读取数据,设置集合点的那种 跪求大佬解惑。。。
- How to test performance / load of a modern angular
- Use jmeter to test multiple Websites
- What are the current best practices for load testi
- RequestVerificationToken is not idetifying/or gett
- How to pass custom property when running jmeter vi
- What should my expectation be for baseline RPS for
- How to set up parameters of a stored procedure in
JMeter uses blocking HTTP client, in order to hit the server at the exact same time with 100 reqeusts you need 100 threads in JMeter. Even providing that, you still don't have 100 cores to actually run such code at the same time. Even if you had 100 cores, it takes some time to start a thread, so you would have to start them in advance and synchronize on some sort of barrier. And that is not supported in JMeter.
Why do you really want to run your server "at same millisecond"? An ordinary load test just calls the server with as many connections as possible, but not necessarily at the same time. Moreover, sometimes you are even adding random sleep between requests to simulate so-called think time.
In JMeter you can use synchronizing timer setting it to 100, this way all threads will wait until there are 100 available and hit the server:
Another solution is to increase the number of Threads so that you hit this throughput. In next coming version (2.8) of JMeter you will be able to create threads on demand (created once needed). Anyway hitting few hundred times at same millisecond is a high load so you will have to tune JMeter correctly.
Regards
Philippe
You need to use Jmeter-server and a host of client machines for load generation. Your single machine is not enough to generate the load itself.
As per Philippe's answer, JMeter does in fact support synchronous requests. But maybe for what you want something like Apache Bench using -c100 (or tune it to whatever works) is a better option? It's pretty basic stuff but then the overhead is a lot smaller which might help in this situation.
But I would also steal from Tomasz's answer and echo his concern that perhaps this is not really the best way to approach load testing. If you're trying to replicate real life traffic then do you really need such a high level of concurrency?