How to handle async requests in Jmeter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to handle async requests in Jmeter

Harshal Kulkarni
Hi Team -

I am working to load test one application in our organization, which has
number of static components and hence in Jmeter I see number of HTTP
sampler per static call as below :

Transaction Controller1

-HTTP Request 1

-HTTP Request 2

.

.

-HTTP Request n

Transaction COntroller2

-HTTP Request 1

-HTTP Request 2

.

.

-HTTP Request n

Transaction COntroller3

-HTTP Request 1

-HTTP  Request 2

.

.

-HTTP Request n


As these samplers get executes serially, and then the response time is get
added at the end, the overall page response time comes quite high.

Is there any way where I can call these HTTP requests for static
components, to be executed synchronously/in parallel (as it is more
relistic way)?

Appreciate your help here. Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: How to handle async requests in Jmeter

glinius@live.com
If these "static" components are images, scripts, styles, fonts, etc. you
don't need to mimic these requests manually, you should rather leave this to
JMeter. Tick *Retrieve All Embedded Resources from HTML Files* and *Use
concurrent pool* boxes at the "Advanced" tab of the  HTTP Request Defaults
<http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request_Defaults>  
and define the desired number of parallel requests via *Size* input.

If your "static components" don't fall into any of the aforementioned
categories check out  Parallel Controller
<https://github.com/Blazemeter/jmeter-bzm-plugins/blob/master/parallel/Parallel.md#parallel-controller>  
plugin which seems to be something you're looking for (however you might
need to get rid of your Transaction Controller). If you will go for the
Parallel Controller you can install it using  JMeter Plugins Manager
<https://www.blazemeter.com/blog/how-install-jmeter-plugins-manager>  



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]