I have done execution in the JMeter tool in two different environments and found a huge variation in response time. For ENV1 I am getting nearly 3sec and for ENV2 it is coming < 1 sec. I checked in logs and found API logs are not taking much time only For secure session establishment(SSL Certificate) it is taking the time. Please help, will really appreciate it if it's explained in detail. (Attaching log details of both the environment) ENV1 log details:
2019-07-31 14:55:27,532 DEBUG o.a.j.u.JsseSSLManager: keyType: RSA
2019-07-31 14:55:27,532 DEBUG o.a.j.u.JsseSSLManager: Client alias: '1'
2019-07-31 14:55:27,532 DEBUG o.a.j.u.JsseSSLManager: WrappedX509Manager: getCertificateChain(1)
**2019-07-31 14:55:27,532 DEBUG o.a.j.u.JsseSSLManager: WrappedX509Manager: getPrivateKey: sun.security.rsa.RSAPrivateCrtKeyImpl@ffef9391
****2019-07-31 14:55:29,664 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: Secure session established**
2019-07-31 14:55:29,664 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: negotiated protocol: TLSv1.2
2019-07-31 14:55:29,664 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: negotiated cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA
2019-07-31 14:55:29,664 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: peer principal: CN=7dkUc8BjHPYgSadbvt2Ysr, OU=0015800000jfQ9aAAE, O=OpenBanking, C=GB
2019-07-31 14:55:29,664 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: issuer principal: CN=OpenBanking Pre-Production Issuing CA, O=OpenBanking, C=GB
2019-07-31 14:55:29,664 DEBUG o.a.j.p.h.s.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator: Connection established 10.102.45.126:65254<->3.121.54.161:443
2019-07-31 14:55:29,664 DEBUG o.a.h.i.e.MainClientExec: Executing request POST /oauth/as/token.oauth2? HTTP/1.1
While in ENV2 it is coming in a millisecond.
2019-07-31 15:52:06,371 DEBUG o.a.j.u.JsseSSLManager: keyType: RSA
2019-07-31 15:52:06,371 DEBUG o.a.j.u.JsseSSLManager: Client alias: '1'
2019-07-31 15:52:06,371 DEBUG o.a.j.u.JsseSSLManager: WrappedX509Manager: getCertificateChain(1)
**2019-07-31 15:52:06,371 DEBUG o.a.j.u.JsseSSLManager: WrappedX509Manager: getPrivateKey: sun.security.rsa.RSAPrivateCrtKeyImpl@ffef9391**
**2019-07-31 15:52:06,516 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: Secure session established**
2019-07-31 15:52:06,516 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: negotiated protocol: TLSv1.2
2019-07-31 15:52:06,516 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: negotiated cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA
2019-07-31 15:52:06,517 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: peer principal: CN=7dkUc8BjHPYgSadbvt2Ysr, OU=0015800000jfQ9aAAE, O=OpenBanking, C=GB
2019-07-31 15:52:06,517 DEBUG o.a.h.c.s.SSLConnectionSocketFactory: issuer principal: CN=OpenBanking Pre-Production Issuing CA, O=OpenBanking, C=GB
2019-07-31 15:52:06,517 DEBUG o.a.j.p.h.s.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator: Connection established 10.102.45.126:49546<->34.246.60.233:443
2019-07-31 15:52:06,517 DEBUG o.a.h.i.e.MainClientExec: Executing request POST /oauth/as/token.oauth2 HTTP/1.1