apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.4k stars 2.1k forks source link

Incorrect APi Response time in load testing #5583

Closed asfimport closed 2 years ago

asfimport commented 3 years ago

Vijay (Bug 65615): Hi ,

Please check when we are running load test from jmeter even for single user we are getting response time between 1-2 second and same API is giving response with 500 ms on postman.

jmx attached.

Created attachment skimmed.jmx: API jmx

skimmed.jmx ````xml false true false continue false 1 500 3610 false true Authorization Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjZkNWVjNjZhYWU0NzI3YjZkYzQ0MDU5MDg1NDJkNzEzYTc3OGZiMzllMTliMTU3ODQ1ZGY3M2U1ZmRhYzhmMmIwOWI0MTY0NzFiNjVhZWM3In0.eyJhdWQiOiIxIiwianRpIjoiNmQ1ZWM2NmFhZTQ3MjdiNmRjNDQwNTkwODU0MmQ3MTNhNzc4ZmIzOWUxOWIxNTc4NDVkZjczZTVmZGFjOGYyYjA5YjQxNjQ3MWI2NWFlYzciLCJpYXQiOjE2MjE3MDExMTQsIm5iZiI6MTYyMTcwMTExNCwiZXhwIjoxNjUzMjM3MTE0LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.S7msJ2HkCz5voTQcU6nHanrhNd_PwO0cQV8Ua6YmWe1LcQvnH1MbM45pMWTrlIt4XVRUrH-YWLsGIhWlIHS9G-gkJu6ln_M91ssBi1LRYX5R6Z3e4d462OkZNKD9ZsibvGdAzjpwPpuq3LV2DsIlSUOGIKwoJhzfyj6yzNcEsR69NJzhUnFKrggJd7-wAyXf8_wY7YoiKfBT2e0Obi5FX1y7kUlEiYLMfOprbbKTrcmJlkUhRz4zfU9F6hovb0hnCg396NJbWs2XCFD9-Xv4R0NLnIAi156GptQmT64tjIuk2RIXfxCboo_5QDLDQTqvcZPeEJhOrnV0c8o4vF9qJrS2j--zIYzQgO_AbnE2K693W0scKkKDVKCEy8tfykW3dAUh7a7Jp1XHBOTOws62_ZmJ8lZDromnQN8cDcOTTagK_2ol-V4u7gz_bDk_Sux_pdA70THALLj8QIK93N7At-GASxMUYmcTWf6lL0v9nmtXL03zvL41WNcIURBpdEr3mcYfQ0bQojFuX9B5q5iPI6f-Oq_hXr5ZBUFuX2267-hU9FFl9qFJqFctF1WnwuY8Z9Ax9xzWAFJdHc9nFoVscsdeAWfa57jovfjHIASRXSAz16BveUv5btO6a6JcrqWbikJWVx8dozu7VRZL2KfFWiz0Dh21IYMJJ4RaW-d2XQM Content-Type application/json api.selectastro.co.in https /api/execute/birthchart?profileId=37491839&image=true GET true false true false false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true ````

Severity: major OS: All

asfimport commented 3 years ago

@FSchumacher (migrated from Bugzilla): I think this would be a good candidate to ask on the users mailing list first.

Having said that, why do you use one iteration with 500 users? Have you tried more iterations and/or less users?

It could be, that the first setup of the TLS session is more expensive, than reusing a session and that the observed times would drop down to your expected numbers.

asfimport commented 2 years ago

@pmouawad (migrated from Bugzilla): Closing as no feedback