https://bz.apache.org/bugzilla/show_bug.cgi?id=66248
Bug ID: 66248
Summary: First https request is much slower because of Creating
threadLocal SSL context
Product: JMeter
Version: 5.4.3
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.5
Created attachment 38381
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38381&action=edit
logfile with debug
When doing https request, the first request will be always much slower.
For example testing jmeter.apache.org 4 times in sequence gives response times:
1234, 110,110,130 ms
When using debug I see (removed lines in between):
2022-08-31 08:48:30,462 DEBUG o.a.j.p.h.s.HTTPHC4Impl: Start : sample
https://jmeter.apache.org/ method GET followingRedirect false depth 0
2022-08-31 08:48:30,634 DEBUG o.a.j.u.JsseSSLManager: Creating threadLocal SSL
context for: thread1 1-1
2022-08-31 08:48:31,312 DEBUG o.a.j.u.JsseSSLManager: Using threadLocal SSL
context
for: thread1 1-1
2022-08-31 08:48:31,347 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: Starting
handshake
So creating the SSL context is taking 678ms. This is included in the response
time of the first request.
For the next (same) request is it using the already created SSL context. So the
response time of this request is much faster.
I have doubts if this "Creating threadLocal SSL context" should be part of the
response time measured because it is not caused by the tested server/service.
For load testing maybe not a big issue (because a lot of requests). But we use
jmeter also for monitoring. So we are staring jmeter, repeating 1 request 1-3
times and stop jmeter.
--
You are receiving this mail because:
You are the assignee for the bug.