Hello, How do you think retry work ? Do you expect it to retry successful requests ? Any failed call ?
That's not the case. See: http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request *Retry handling* For HttpClient4 the retry count has been set to 0, meaning no retry is attempted. Note that the Java implementation appears to retry 1 time. The retry count can be overridden by setting the relevant JMeter property, for example: httpclient4.retrycount=3 httpclient4.request_sent_retry_enabled=true And also: http://jmeter.apache.org/usermanual/properties_reference.html httpclient4.retrycount: Number of retries to attempt. Retry will be done on Idempotent Http Methods by default. If you want to retry for all methods, see property httpclient4.request_sent_retry_enabled Defaults to: 0 httpclient4.request_sent_retry_enabled: Set this property to true if it's OK to retry requests that have been sent. This mean that both Idempotent and non Idempotent requests will be retried. This should usually be false, but it can be useful when testing against some Load Balancers like Amazon ELB. Defaults to: false On Thu, Nov 2, 2017 at 6:55 AM, Muhammad Nasir <mna...@folio3.com> wrote: > Thanks for your feedback Philippe, but it does not work. Jmeter.log is > uploaded at > https://pastebin.com/2Y9E4wCm > > I made following entry in log4j2.xml and restarted JMeter. > <Logger name="org.apache.http.impl.execchain.RetryExec" level="info" /> > > *Muhammad Nasir* > Lead Quality Assurance Engineer > *folio3* Pvt. Ltd. > www.folio3.com > Cell: +92 332 257 9082 > > On Thu, Nov 2, 2017 at 1:01 AM, Philippe Mouawad < > p.moua...@ubik-ingenierie.com> wrote: > > > Hello, > > Set this logger to Info: > > org.apache.http.impl.execchain.RetryExec > > > > It can be done in log4j2.xml > > > > Regards > > > > On Wed, Nov 1, 2017 at 1:04 PM, Muhammad Nasir <mna...@folio3.com> > wrote: > > > > > Hello, > > > > > > Is there a way to log HTTP sampler retry in JMeter logs? Although I am > > > seeing"2017-11-01 07:54:25,703 INFO o.a.j.p.h.s.HTTPHC4Impl: HTTP > request > > > retry count = 2" but not sure whether it's actually working or not, > > because > > > total number of requests are not showing retries. > > > > > > Thanks, > > > Nasir > > > > > > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > Ubik-Ingénierie > > > > UBIK LOAD PACK Web Site <http://www.ubikloadpack.com/> > > > > UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack> > > > -- Cordialement. Philippe Mouawad.