SPONSORS:






View RSS Feed

Ronak

Understanding JMeter Element- Critical Section Controller

Rate this Entry
by , 06-21-2015 at 02:42 AM (2776 Views)
Understanding JMeter Element- Critical Section Controller

The Critical Section Controller ensures that its children elements (samplers/controllers, etc) will be executed by only one thread as a named lock will be taken before executing children of controller.
For example, if one script has 2 Critical Section Controllers with requests DS2-${__threadNum} and DS4-${__threadNum} respectively. Then it ensures that:
DS2-${__threadNum} is executed only by one thread at a time
DS4-${__threadNum} is executed only by one thread at a time

Parameters:

Lock Name- Lock that will be taken by controller, ensure you use different lock names for unrelated sections
Critical Section Controller takes locks only within one JVM, so if using Distributed testing ensure your use case does not rely on all threads of all JVMs blocking.




Disclaimer: The article/post is posted with the purpose of sharing knowledge and information.
The article may contain references, extract or content from other informative sources.
Researched/Authored/Compiled by -
Ronak Shah
Practice Head - Software Testing (QA), CIGNEX Datamatics

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:25 AM.

Copyright BetaSoft Inc.