apache / apache/jmeter

Java vs. HTTPclient4 very slow response time difference, HTTPclient4 adding 30s to response time

Open
#4,948 7 comments 0 reactions 0 assignees View on GitHub
need info os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**RuThaNiel van den Naar** ([Bug 63004](https://bz.apache.org/bugzilla//show_bug.cgi?id=63004&redirect=false)):
Hello,
im using Jmeter for 12 years now, but there are everything new strange bugs.

I met strange problem with new HTTP application, which im testing, in browser are response times from 2-20s for whole pages for all requests, this 1 problematic is 0-8s, in Jmeter for 1 request was response time almost always 30s+, in very few occasional iterations im getting fast response time 1-8s, but when i get slow its always over (like some wait is added or something like that) 30s, 30-38s. I run zillion of iterations, but i never got response between 8s and 29s!, always 30+, or <8s.

I kept, investigating and when i used Java client+RedirectAutomatically option instead of HTTPclient4 is fine,i getting reasonable response times 0-8s. Any other any other combinations, failing, i tried httpclient4 with redirectAutomatically too, its the same, its still slow, +30s.. in 95% of cases. Its not some application hicup or something its reproducable, whole day long problem.

I tried Jmeter 4/3.3 even Jmeter 3 with HTTP client3 and its accross multiple of version, there is some bug.

Its simple scripts, no timers, no cycles etc.. just requests, transaction controller and lots of regular expression extractors and few results tree. Load is 1 to 5 users. Java 1.8 64 bit 1.8 191.

Im using OpenVPN for scripting, antivir is turn down, but condion for all testing are the same.

Application+data are not public, but i know that im doing, same scenario in SilkPerformer is fast too.

Severity: normal
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.