admin管理员组文章数量:1022752
So I have a GET API. In DB we have only 100 records. Now I need to test execution time, load time etc when our API asked to serve 10000 records all at once.
So for this in JMeter I have done this following configuration:
Number of Threads : 1
Ramp up period: 1
Loop count: 100
Now my confusion is if I hit the simple get-request from postman Im getting the result in around 8sec and size is around 4mbs. Now with the above Jmeter config I checked the load time is around 6sec and Size in bytes:4669744. So I belive I haven't hit 10000 records otherwise Size would be increased. Am I correct? And how can I achieve 10000 records performance without manually inputting 10000 data in DB?
So I have a GET API. In DB we have only 100 records. Now I need to test execution time, load time etc when our API asked to serve 10000 records all at once.
So for this in JMeter I have done this following configuration:
Number of Threads : 1
Ramp up period: 1
Loop count: 100
Now my confusion is if I hit the simple get-request from postman Im getting the result in around 8sec and size is around 4mbs. Now with the above Jmeter config I checked the load time is around 6sec and Size in bytes:4669744. So I belive I haven't hit 10000 records otherwise Size would be increased. Am I correct? And how can I achieve 10000 records performance without manually inputting 10000 data in DB?
Share Improve this question asked Nov 19, 2024 at 13:57 PAMPA ROYPAMPA ROY 532 silver badges9 bronze badges1 Answer
Reset to default 04669744
bytes is "around 4mbs"- With your setup you run 100 sequential requests, not 10000 concurrent requests
If you have 100 entries in DB and want to execute 10000 concurrent requests it means that each record will be fetched 100 times and you can get false positive results due to caching on DB and/or application server sides
So if you want to just run 10000 requests at the same time you will need to set "Number of Threads" to 10000. Additionally you might want to add a Synchronizing Timer to make sure that requests are being executed at exactly the same moment.
Having 10000 concurrent requests might require additional configuration on JMeter side, make sure to follow JMeter Best Practices and recommendations from 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure article
So I have a GET API. In DB we have only 100 records. Now I need to test execution time, load time etc when our API asked to serve 10000 records all at once.
So for this in JMeter I have done this following configuration:
Number of Threads : 1
Ramp up period: 1
Loop count: 100
Now my confusion is if I hit the simple get-request from postman Im getting the result in around 8sec and size is around 4mbs. Now with the above Jmeter config I checked the load time is around 6sec and Size in bytes:4669744. So I belive I haven't hit 10000 records otherwise Size would be increased. Am I correct? And how can I achieve 10000 records performance without manually inputting 10000 data in DB?
So I have a GET API. In DB we have only 100 records. Now I need to test execution time, load time etc when our API asked to serve 10000 records all at once.
So for this in JMeter I have done this following configuration:
Number of Threads : 1
Ramp up period: 1
Loop count: 100
Now my confusion is if I hit the simple get-request from postman Im getting the result in around 8sec and size is around 4mbs. Now with the above Jmeter config I checked the load time is around 6sec and Size in bytes:4669744. So I belive I haven't hit 10000 records otherwise Size would be increased. Am I correct? And how can I achieve 10000 records performance without manually inputting 10000 data in DB?
Share Improve this question asked Nov 19, 2024 at 13:57 PAMPA ROYPAMPA ROY 532 silver badges9 bronze badges1 Answer
Reset to default 04669744
bytes is "around 4mbs"- With your setup you run 100 sequential requests, not 10000 concurrent requests
If you have 100 entries in DB and want to execute 10000 concurrent requests it means that each record will be fetched 100 times and you can get false positive results due to caching on DB and/or application server sides
So if you want to just run 10000 requests at the same time you will need to set "Number of Threads" to 10000. Additionally you might want to add a Synchronizing Timer to make sure that requests are being executed at exactly the same moment.
Having 10000 concurrent requests might require additional configuration on JMeter side, make sure to follow JMeter Best Practices and recommendations from 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure article
本文标签: spring bootJMeter simulation for larger data while having actually smaller datasetStack Overflow
版权声明:本文标题:spring boot - JMeter simulation for larger data while having actually smaller dataset - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745556802a2155925.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论