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?

  • 1
    This mostly because of initial ssl handshake , – PDHide Jun 5 at 8:43
  • Caching of pages/images on both client and server and network (e.g. CDNs) are also factors to consider. – Michael Durrant Jun 5 at 10:17
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:

| improve this answer | |
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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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