1

First Business transaction:

  • First HTTP request - performing edit functionality on the Add User Page (Login --> Homepage --> Adduser) is taking more time than usual. (Delay in launching URL)

Second Business transaction:

  • First HTTP request - performing edit functionality on the Add Registration Page(Login --> Homepage --> Registration) is taking less time. (Now it's working very fast)

Could you please guide me on why the application behaves like this?

2
  • 1
    This mostly because of initial ssl handshake ,
    – PDHide
    Jun 5, 2020 at 8:43
  • Caching of pages/images on both client and server and network (e.g. CDNs) are also factors to consider. Jun 5, 2020 at 10:17

2 Answers 2

1

Most often this is configuration of the web-application. Each service used could have a cold-start/sleep. The service goes to sleep after X time of being idle, this to save resources. Or it needs to compile/load the run-time after a reboot. Some of our application that run on MS InternetInformationServices take upto 25 seconds to start for the first call.

So verify that in production this disabled. You could argue that this might not be an issue in production if your application has users worldwide, because someone would always keep the application alive.

In your tests you could add a wait time for the first call, or disable the auto sleep of the (web)-services in your environment if possible.

Reads:

1
0

If you have HTTP Cache Manager in the test plan that explains everything because so called "embedded resources" - images, scripts, styles, fonts, sounds, etc. take the most bandwidth while HTML response is comparably small.

So when you execute the very first request to the application each JMeter thread (virtual user) downloads all the content from the server and when you make the second request the content is being returned from the cache manager so no actual requests for "heavy" content items are being made.

More information: HTTP Caching

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.