JMeter – Synchronizing Timer

In JMeter, the purpose of the Synchronizing Timer is to hold the threads until X number of threads have arrived, and then they are all released at once.  It adds delays between requests such that all (defined) threads fire at the same time thus creating heavy load bursts on the application. A Synchronizing Timer can thus create large instant loads at various points of the test plan. This timer is very useful to make users (threads) to do the simultaneous task (simultaneous users).

JMeter - Synchronizing Timer
Figure 01: Synchronizing Timer

How to add ‘Synchronizing Timer’?

Follow the below steps to add Synchronizing Timer:

  1. Select the appropriate element where you want to add the timer
    1. Test Plan
    2. Thread Group
    3. Controller
    4. Sampler
  2. Right-click on the element
  3. Hover the mouse over ‘Add’
  4. Hover the mouse over ‘Timers’
  5. Click ‘Synchronizing Timer’

What are the input fields of ‘Synchronizing Timer’?

‘Synchronizing Timer’ has the following input fields:

  1. Name: To provide the name of the timer
  2. Comments: To provide arbitrary comments (if any)
  3. Number of Simulated Users to Group by: This attribute is used to define the number of threads to release at a time. If 0 is given then JMeter will release the same number of users which is defined in the thread group. 
  4. Timeout in milliseconds: This value helps to control the timeout of the requests during the test. If 0 (zero) is set then the timer will wait for all the threads to reach the value which is defined in “Number of Simultaneous Users to Group”. If superior to 0 (zero), then the timer will wait till the number given in “Timeout in milliseconds” irrespective of thread count. If wait time exceeds the given timeout value then the users are released without meeting “Number of Simultaneous Users to Group” criteria. The default value is 0 (zero).

Example

JMeter - Synchronizing Timer
Figure 02

You may be interested:


Leave a Comment