Thread Name:Thread Group 1-62
Sample Start:2020-07-14 23:30:42 CDT
Load time:721
Connect Time:350
Latency:721
Size in bytes:337
Sent bytes:640
Headers size in bytes:308
Body size in bytes:29
Sample Count:1
Error Count:1
Data type ("text"|"bin"|""):text
**Response code:429
Response message:Too Many Requests**
HTTPSampleResult fields:
ContentType: text/html; charset=UTF-8
DataEncoding: UTF-8
================================================== =在以上线程中测试jmeter中的API时,在60个线程之后出现了错误,为什么会出现?如何解决此错误?
我在10秒内使用100个线程进行循环计数1。
最佳答案
根据429 Too Many Requests HTTP状态代码说明,该错误是不言自明的:
The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given amount of time ("rate limiting").
A Retry-After header might be included to this response indicating how long to wait before making a new request.
因此,这些选项位于:
关于api - 使用jmeter “too many attempts error”进行API测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62907780/