jmeter的HTTP取样器设置重连的次数

官网说明:

https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request

Retry handling

By default retry has been set to 0 for both HttpClient4 and Java implementations, meaning no retry is attempted.

通过修改配置文件 jmeter.properties

For HttpClient4, the retry count can be overridden by setting the relevant JMeter property, for example:

httpclient4.retrycount=3
With HC4 Implementation, retry will be done on Idempotent Http Methods by default. If you want to retry for all methods, then set property
httpclient4.request_sent_retry_enabled=true

Note that the Java implementation does not retry neither by default

原文地址:https://www.cnblogs.com/MarlonKang/p/15428475.html